check boxes |
check boxes |
dgs12psu |
Jul 12 2011, 07:01 AM
Post
#1
|
Group: Members Posts: 1 Joined: 12-July 11 Member No.: 14,922 |
Hi,
I am using the following code to create checkbox options: <tr> <td class='ftbl_row_1' ><LABEL ACCESSKEY=''><input type='checkbox' name='SymposiumTheme' id='SymposiumTheme[0]' value='LG'>College Land-Grant System</LABEL> </td></tr> <tr> <td class='ftbl_row_2' ><LABEL ACCESSKEY=''><input type='checkbox' name='SymposiumTheme' id='SymposiumTheme[1]' value='GreenChem'>Green/Sustainable Chemistry</LABEL> </td></tr> I have only shown two of the seven checkbox choices (all others have similar format). The problem is that a user can click all checkboxes before submitting the form the above code is embedded within. I want to limit the user to one checkbox (of their choosing but allow them to correct an inadvertant incorrect selection). It is my understanding that -by default- html code only allows one box to be selected...where am I going wrong? Thank you. |
pandy |
Jul 12 2011, 07:15 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,732 Joined: 9-August 06 Member No.: 6 |
It is my understanding that -by default- html code only allows one box to be selected... Nope, not so. You don't want checkboxes. You want radio buttons. http://htmlhelp.com/reference/html40/forms/input.html |
Lo-Fi Version | Time is now: 26th April 2024 - 11:52 PM |