JavaScript Form Validation example
The errors are shown in message box, one error at a time
(For other options, see the
documentation
)
FirstName, LastName and Email are required fields
FirstName, LastName max length is 20
Phone number should be numeric only
A Country should be selected
First Name
Last Name
EMail
Phone
Address
Country
[choose yours]
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua And Barbuda
Argentina
Armenia
Aruba
Back to article:
JavaScript Form Validations Made Easy!