Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2005
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Radio Groups change based on Radio selected

    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:
    Code:
    <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

  • #2
    New Coder
    Join Date
    May 2005
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no ideas?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •