PDA

View Full Version : Automatic Form Validation



dipen.bagia
10-03-2010, 07:34 PM
1) CODE TITLE: Automatic Form Validator

2) AUTHOR NAME/NOTES: Dipen Bagia

3) DESCRIPTION: Do you need to write the validation code for each of your mandatory fields on your form? This script validates all the required fields on the form with the call of a single function. Moreover, if a mandatory field is hidden due to a business logic or any other reason through css or javascript, this script noticies that and excludes that field for validation check.

IMPORTANT: to tell the script which field is mandatory, you need to add an attribute mandatory="yes" to the input tag of the field.

4) URL TO CODE:

or, ATTACHED BELOW (see #3 in guidelines below):