Provided that you use the correct naming conventions and layout for your buttons, you will not have any trouble.
The first thing that to look at when using radio buttons on our form is how the buttons need to be coded in order for them to function properly as radio buttons.
In actual fact the setup of these fields is the most simple of all form fields to validate as radio buttons set one value that only needs to be tested when the form is submitted.
The difficulty with radio buttons is that there are at least two and usually more fields that need to be placed on the form, related together and tested as one group.
There browsers, however, are often not smart enough to recognize the nesting, so it is worth putting them in to maximize the number of browsers in which the code will function.
Validation of groups of radio buttons may not be obvious, but it is straightforward once you know how.
To validate the radio button group with the name group1 we therefore pass form.group1 to the val Button function.
All of the radio button groups that you will ever need can be handled using the steps covered above.
where the first argument is either a collection of radio buttons, or the name of the button group.
The second argument is a reference to the containing form, though its only necessary if a string is used for the first argument.