Guest, register

gomymobi.com - Free Business Site Builder & Platform

Auto Thousand-Grouped Number Input Fields One more JavaScript code example to build an auto thousand-grouped number after the users finish to type. JavaScript source code looks good and very easy to use.

Category: Form, Textarea

Simple JavaScript Code for Layer Display Toggle One more JavaScript code example to show/hide a layer every time the users click the specified text link. In live demo of this JavaScript code example, the script used to toggle the comments in a post.

Category: Form

JavaScript RegEx Example Code for Text Input Limitations One more JavaScript code example to limit user inputs with many options: non-alphanumeric characters with spaces, removes extra spaces (multiple consecutive, leading and trailing) and blank lines. In this live demo, you can only enter upto 20 characters per line or a total of 10 lines.

The advantage of this JavaScript code example is it's made with RegEx, so user input filters will be processed better.

Category: Form

Simple JavaScript for Auto-Sum with Checkboxes This JavaScript code example uses a for loop to calculate the sum of JavaScript checkbox values. This JavaScript will display a running total automatically when visitors click to select an item without reloading the current page. Very easy to edit and implement into your existing web forms.

Category: Form, Checkbox

JavaScript Dynamic Drop Down Values on Action If your web pages have a huge list of options to show in the drop down menus (listed into categories), why don't you consider to use this JavaScript dropdown code example? This JavaScript dropdown menu generates multiple choices of drop down list in your web forms. Users click a link of category to change the content of drop down list dynamically. Add as many JavaScript dropdown value and categories as you want. Full detailed documentation of script explained in the script comments.

Category: Form, Dropdown

JavaScript Proper Social Security Number Validation One more JavaScript code example to accept numeric characters. But this JavaScript will work in the different manner, it only allows a set number of characters to be entered into a text field and then focus on the next element, the users can still enter other characters but the form will be disabled until they entered right. Easy to implement and edit as you want.

Category: Form, Validation

JavaScript Text Auto-Select onClick If this JavaScript code example installed on a web page, when users click on text-container HTML elements then it will select all of its inner text automatically.

At present, this JavaScript code made to work on elements such as input, textarea, div, span, td, and pre. You still can edit it to work more HTML elements as you want. That's so helpful for website with a lot of text.

Category: Form

JavaScript OOP with Input Display Toggle Usage of this JavaScript code effect is just toggle (show/display) the input text fields when the users click the specified input checkboxes. But this JavaScript code example made with OOP skills, it's still a good JavaScript code example for JavaScript OOP beginners.

Category: Form, Textarea

JavaScript Add More Unlimited Input Fields The type of this JavaScript effect can be seen on many upload-allowance sites, such as Youtube, Flickr, ImageShack, Picasa, etc. That's your visitors can upload files through this JavaScript code, after a file is selected (from local computer), another input field is automatically added for uploading. This JavaScript code made with DOM skills - a simple JavaScript code example but it's very effective to save the space for your web page.

Category: Form, Textarea

Simple JavaScript Number Formatter This JavaScript code example provides us two functions to clean up and format numbers quite nicely.

One JavaScript check number function will take any decimal number, negative or positive, and formats it by adding commas every three digits. The other JavaScript number format function can strip any non-numeric characters from a string leaving you with a valid decimal number. It also considers the minus sign and the period to be numeric and will not strip them unless the minus sign is not at the beginning of the number or there is more than one period.

These JavaScript functions make use of regular expressions to do the heavy lifting.

Category: Form

JavaScript by day

Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web