Click to See Complete Forum and Search --> : Radio Button help


sukhvirsingh
08-22-2003, 11:28 PM
I have made HTML file in which I have to handle the some validation through javacsript. I have made radio buttons whose code is given below
<input type=radio name='grp1' value='Party Type' onClick='Validate1()' >Party Type
<input type=radio name='grp1' value='Party' onClick='Validate1()'>Party
<input type=radio name='grp1' value='Purity' onClick='Validate1()'>Purity

<input type=radio name='grp2' value='Party Type' onClick='Validate1()'>Party Type
<input type=radio name='grp2' value='Party'onClick='Validate1()' >Party
<input type=radio name='grp2' value='Purity' onClick='Validate1()'>Purity


<input type=radio name='grp3' value='Party Type' onClick='Validate1()'>Party Type
<input type=radio name='grp3' value='Party' onClick='Validate1()' >Party
<input type=radio name='grp3' value='Purity' onClick='Validate1()' >Purity

My problem is that if I select one radiobutton name="grp1" value="Party Type" then no other radiobutton with name="grp2" with value="Party Type" and in name="grp3" with value="Party Type" should be checked and if so then error message should come. Like wise I want same in all radio buttons

Pls solve my problem and let me know at goldsukh@rediffmail.com

Thanks