Radio Button Validation

Red
Green
Blue

One
Two
Three
Other:

There are a couple of ways to ensure that a radio button is selected by the user. The first approach is to define a button as "selected". But this assumes that the user will take care in deciding whether or not the preselected button fits his/her choice. The other approach is to use a validation script, where the user is required to make a selection. Incorporate this radio button validation function into your existing form validation function as shown in this example.

Code:

Place in the <BODY>:
Highlight