google+javascriptbanktwitter@js_bankfacebook@jsbankrss@jsbank
Guest, register






Dynamic Form Fields I needed a form for students enrolling in training courses. I couldn't find exactly what I needed out there, so I built my own (borrowing some code from others (credits given in code)). The really important thing was that if, after changing the data, the applicant altered the number of students or hit the back button from the next page, the existing data would not be lost.

Feel free to do whatever with this code, no credit to me required. If you make it better, though, please feel free to e-mail me! Create a form that dynamically changes the number of fields available based on a select list value.


Category: Form

Country Chooser Here's a useful script for a form that needs to know the visitor's country. It saves giving a huge list of countries in one box. For the USA, it also asks the state.


Category: Form, Dropdown

Adding HTML Controls Use this JavaScript to add HTML controls to your forms. This example uses the <input> tag.


Category: Form, Textarea

Dynamic Table Enter information into this dynamic table and see the power of W3C-DOM compatible browsers. Absolutely Amazing!


Category: Form, Table

\'Select-all\' form element Select the text from any form with the click of a button, just as used on the JavaScript Source. Easy!


Category: Form

User Management Use this JavaScript to add and subtract items in different fields. Changes made can be displayed for each field.


Category: Form, Dropdown

Check Form This form validation script will place a check in the checkbox next to a textbox in a form if the enty is valid. Includes basic form validation. Cool!


Category: Form, Validation

Only One Field The visitor must fill in either one of two fields, their name or email address. If they click in either box the other box's value is erased. Ensures that when the form is submitted only one field contains a value. Also contains validation that makes sure both fields are not empty.


Category: Form, Validation

Validation (SSN) Input the Social Security Number using either the 9 digit or NNN-NN-NNNN format. The number ranges can be easily changed by the S.S.A, so this is not checked.


Category: Form, Validation

Validation (password) This JavaScript works like our Password Verifier, however, it also checks for a minimum length and invalid characters.


Category: Form, Validation

iPhoneKer.com
Save up to 630$ when buy new iPhone 15

GateIO.gomymobi.com
Free Airdrops to Claim, Share Up to $150,000 per Project

https://tooly.win
Open tool hub for free to use by any one for every one with hundreds of tools

chatGPTaz.com, chatGPT4.win, chatGPT2.fun, re-chatGPT.com
Talk to ChatGPT by your mother language

Dall-E-OpenAI.com
Generate creative images automatically with AI

AIVideo-App.com
Render creative video automatically with AI

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web