Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    435
    Member #
    8983
    I am making a survey form, and i need to have a selection of 1 - 9 in this case there being 9 options but only allow the user to select one per group, so you can only choose 1 once in all 9 groups and only choose 1 of the 9 buttons for each group (i hope that is understandable)
    HTML Code:
    <fieldset>
    <legend>Question 3</legend>
    <table>
    <tr class="dark">
    <td>choice A</td>
    <!-- this is group one, only one option is allowed this is accomplished with the principle of 
    radio buttons however a user can only use value 1 once in all 9 groups -->
    <td><input type="radio" name="question3a" value="1" id="3a1" />1</td>
    <td><input type="radio" name="question3a" value="2" id="3a2" />2</td>
    <td><input type="radio" name="question3a" value="3" id="3a3" />3</td>
    <td><input type="radio" name="question3a" value="4" id="3a4" />4</td>
    <td><input type="radio" name="question3a" value="5" id="3a5" />5</td>
    <td><input type="radio" name="question3a" value="6" id="3a6" />6</td>
    <td><input type="radio" name="question3a" value="7" id="3a7" />7</td>
    <td><input type="radio" name="question3a" value="8" id="3a8" />8</td>
    <td><input type="radio" name="question3a" value="8" id="3a9" />9</td>
    </tr>                                                                      
    <tr>
    <td>Choice B</td>
    <td><input type="radio" name="question3b" value="1" id="3b1" />1</td>
    <td><input type="radio" name="question3b" value="2" id="3b2" />2</td>
    <td><input type="radio" name="question3b" value="3" id="3b3" />3</td>
    <td><input type="radio" name="question3b" value="4" id="3b4" />4</td>
    <td><input type="radio" name="question3b" value="5" id="3b5" />5</td>
    <td><input type="radio" name="question3b" value="6" id="3b6" />6</td>
    <td><input type="radio" name="question3b" value="7" id="3b7" />7</td>
    <td><input type="radio" name="question3b" value="8" id="3b8" />8</td>
    <td><input type="radio" name="question3b" value="8" id="3b9" />9</td>
    </tr>                                                                  
    </fieldset>
    ...
    What i am asking is how would i use javascript to switch the checked field to the next group basically use the radio functionality horizontally and vertically.
    Thee Pyro Wolf

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:17 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com