...

View Full Version : Radio Groups change based on Radio selected



saljb
07-14-2005, 04:23 PM
I have a form with only radio buttons. I would like if a radio button from one group is checked (not form submitted) that it changes what is displayed in the other groups.


So in the below example:
IF value 1 from group1 is selected then 1st group2 is shown and other group2 are not
IF value 2 from group1 is selected then 2nd group2 is shown and other group2 are not
IF value 3 from group1 is selected then 3rd group2 is shown and other group2 are not

example:


<Form>

<input type="radio" name="Group1" value="1">1
<input type="radio" name="Group1" value="2">2
<input type="radio" name="Group1" value="3">3
<input type="radio" name="Group1" value="1,2,3">All

::this is 1st Group2::
<input type="radio" name="Group2" value="4">4
<input type="radio" name="Group2" value="5">5
<input type="radio" name="Group2" value="6">6
<input type="radio" name="Group2" value="4,5,6">All


::this is 2nd Group2::
<input type="radio" name="Group2" value="7">7
<input type="radio" name="Group2" value="8">8
<input type="radio" name="Group2" value="9">9
<input type="radio" name="Group2" value="7,8,9">All

::this is 3rd Group2::
<input type="radio" name="Group2" value="10">10
<input type="radio" name="Group2" value="11">11
<input type="radio" name="Group2" value="12">12
<input type="radio" name="Group2" value="10,11,12">All

<input type="submit" value="submit">



Now the trick is that it continues. Once decided which group2 to display. Same thing happens again. If a value from the displayed group2 is picked then that changes what is shown in other radio groups.

thanks.SalJB

saljb
07-15-2005, 04:19 PM
no ideas?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum