The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> check boxes
dgs12psu
post 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>&nbsp;
</td></tr>
<tr>
<td class='ftbl_row_2' ><LABEL ACCESSKEY=''><input type='checkbox' name='SymposiumTheme' id='SymposiumTheme[1]' value='GreenChem'>Green/Sustainable Chemistry</LABEL>&nbsp;
</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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 12 2011, 07:15 AM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,402
Joined: 9-August 06
Member No.: 6



QUOTE(dgs12psu @ Jul 12 2011, 02:01 PM) *

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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th October 2019 - 03:16 PM