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

Radio Button Validation

Sunday May 18, 2008
One of the easiest form fields to validate in JavaScript (but the one that gives many people the most trouble) are radio buttons.

In this tutorial we look not only at how to validate radio buttons quickly and easily but also at how to attach the text associated with each button so that clicking on the text will select the appropriate button just like they do automatically everywhere except on the web.

Radio Button 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

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.