If the required field is blank, we return the error string to the main function.
If its not blank, the function returns an empty string.
For that we use the seacrh() method and two more regular expressions: /(a-z) / and /(0-9)/.
validate Email ( ) Next we want to see if the email address the user entered is real.
Next, we use the is Na N() function to check if the phone number contain only numbers.
At last we check the length of the string and permit only phone numbers with 10 digits. When the user clicks the Submit button on the form, the form data is sent to a Java Script validation function that checks each field to make sure that it is in the appropriate format.
validate Password ( ) The function below checks the password field for blankness and allow only letters and numbers - no underscopes this time.
This wont be perfect validation it is possible to slip not compliant addresses by it but it's normally good enough.Otherwise it returns a message describing the error and highlight appropriate element with yellow.validate Empty ( ) The function below checks if a required field has been left empty.Using Form Validation, you can validate the wizard-like interfaces such as tabs, collapsible panels, accordions.When using these kind of components, the form fields are split into multiple regions which there is only active, visible one at any time.