Results 1 to 1 of 1

Thread: Automatic Form Validation

  1. #1
    Join Date
    Jul 2008
    Location
    India
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Automatic Form Validation

    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):
    Last edited by dipen.bagia; 10-03-2010 at 07:46 PM. Reason: Missed to add an important step for using the script

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •