JavaScript Single Field Validation - Example 2

This example provides tighter checking than Example 1. The fields are checked as soon as you change their value rather than waiting for the "Send" button to be clicked. This example also checks for specific characters and range of values.

Full Name: (checks a-z, A-Z, space)
Age: (checks for 1-120)
Sex: Male Female (checks for olny one)
Telephone: (checks loosely for (###)###-#### format)

Press when done or Press to clear this form.

Source: View or Save this HTML file to obtain the scripts used to do this validation. The scripts are part of the file.