You are here:About>Computing & Technology>JavaScript> Validating Forms
About.comJavaScript

Validate Form Content

You can validate what your visitors enter into fields on your form both when they enter the field itself and immediately before they submit the form. These tutorials will show you how.
Free Weekly Form Validation Class
This free course over eight weeks will take you step by step through some of the more common validations that you may want to perform with Javascript including radio button validation, drop down list validation, and a number of the validations that you may wish to use for the text fields on your form. Also how to attach the validations to both the individual fields and the form submit button.
Introduction to Form Field Validation
What form fields require validation and when should you validate them.
Radio Button Validation
Radio Buttons are the simplest form fields that require validation. This tutorial shows you how to define and validate them properly.
Drop Down List Validation
How to validate that an appropriate entry is selected from a drop down list.
Individual Field Validation
How to link your validation function to the field so that it is validated straight away.
Validate on Submit
How to validate all of the fields on your form immediately prior to the form being submitted.
Cross Field Validation
Sometimes validating each field individually is not enough. Sometimes you need to validate the content of one input field against another.
 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.