Share this post! | Vote this! |
|
Javascript is a strong tool for validating forms before sending the content.
The most obvious things to check for are whether an emailaddress has valid syntax, or if fields meant for values have text entered, etc.
This page covers the 4 most important techniques.
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.
More...
The most obvious things to check for are whether an emailaddress has valid syntax, or if fields meant for values have text entered, etc.
This page covers the 4 most important techniques.
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.
More...
0 comments:
Post a Comment