Form Validation - Example

In the form below, the label next to each field indicates what type of data should be entered in the field. When the form is submitted, an alert box will indicate what fields did not validate.

- -

Option 1
Option 2
Option 3

View the source of this page.

More about this script

Related to this script


This script is released under a Creative Commons License.