Form Validation :
THE TECHNIQUE








The javascript to validate inputs to a form consists of four different functions:

  • emailvalidation
  • will check to see if a value lives up to the general syntax of an email.

  • valuevalidation
  • will check to see if a value is within a certain interval.

  • digitvalidation
  • will check to see if a value consits of a certain number of digits.

  • emptyvalidation
  • will check to see if a field is empty or not.

The validation can take place as the visitor enters values, or all at once upon clicking the submit button after entering the values.

Each validation function can easily be customized to fit the needs of the fields they are checking.


 << PREVIOUS
READ MORE >>  
















DEVELOPER TIP!





     "Better Than Books - As Easy As It Gets!"