1. Home
  2. Computing & Technology
  3. JavaScript

Text Field Validation

clr gif
Join the Discussion

Questions? Comments?

Related Resources

Tutorials

Text fields can be rather complicated to validate since the exact validation that you need to perform will vary from one field to another depending on what you expect to have entered. The validation process can be made simpler though. This collection of functions will handle a lot of the different validations that you wioll need to perform on each form field in order to verify that the field contains what you expect it to contain:

These functions can be called as required to assist in validating your text input and textarea form fields. For more information on how to use these functions see the Validating Forms tutorials.

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript
  4. Script Library
  5. Form Validation Scripts
  6. Validate Text Fields

©2008 About.com, a part of The New York Times Company.

All rights reserved.