1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

Introduction to Form Field Validation

Wednesday September 9, 2009
One of the first types of JavaScript you are likely to need to write for yourself is to validate a form.

Before we start looking at how to validate form fields in JavaScript, let's start by looking at what types of form fields that there are and work out which ones will need to be validated. We also need to think about when to validate the fields. This first form field validation tutorial discusses the basics of HTML forms and how and when we would need to validate them with JavaScript. In subsequent tutorials we will look at how to actually apply validation to fields using JavaScript and where to attach out JavaScript to validate the fields at the right times.

Introduction to Form Field Validation
Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.