Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16658

Re: radiobuttons and checkboxes

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Newsgroups comp.lang.javascript
Subject Re: radiobuttons and checkboxes
Date Tue, 16 Oct 2012 15:20:09 +0300
Organization A noiseless patient Spider
Lines 22
Message-ID <k5jjdp$u32$1@dont-email.me> (permalink)
References <m-idnR5KbdOWc-HNnZ2dnUVZ_gadnZ2d@westnet.com.au> <507d367e$0$6871$e4fe514c@news2.news.xs4all.nl>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 16 Oct 2012 12:20:09 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="9e0ae8574c58208bf47738e1c9986fe4"; logging-data="30818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+sSuknQ1BRoBGmTbLIaLy"
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
In-Reply-To <507d367e$0$6871$e4fe514c@news2.news.xs4all.nl>
X-Antivirus-Status Clean
X-Antivirus avast! (VPS 121016-0, 16.10.2012), Outbound message
Cancel-Lock sha1:iOY/qT0ZM1dVCOnkqqrvqwfLqZo=
Xref csiph.com comp.lang.javascript:16658

Show key headers only | View raw


2012-10-16 13:27, Tom de Neef wrote:

> "Andrew Poulos" <ap_prog@hotmail.com> schreef in bericht
> news:m-idnR5KbdOWc-HNnZ2dnUVZ_gadnZ2d@westnet.com.au...
>> The user needs to select one or more items. I can't use radio button sets
>> because that limits you to only one selected item
>
> I think that that is not true. Only radiobuttons with the same name exclude
> each other. AFAIK you can use different sets of radiobuttons as long as
> these sets use different names.

That is true, but it does not solve the problem. Using different names 
for radio buttons makes them isolated so that each of them is a group of 
its own. Then, once the user checks a radio button, he cannot uncheck 
it, because the only way (in HTML) to uncheck a checked radio button is 
to check another button in the same group. Moreover, this does not make 
it mandatory to check at least one of the buttons - you would still need 
to check that on form submission, just as in the more natural approach 
that uses checkboxes.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

radiobuttons and checkboxes Andrew Poulos <ap_prog@hotmail.com> - 2012-10-16 16:17 +1100
  Re: radiobuttons and checkboxes "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-10-16 11:09 +0300
  Re: radiobuttons and checkboxes "Tom de Neef" <tdeneef@qolor.nl> - 2012-10-16 12:27 +0200
    Re: radiobuttons and checkboxes "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-10-16 15:20 +0300
    Re: radiobuttons and checkboxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-16 21:02 +0200
  Re: radiobuttons and checkboxes Scott Sauyet <scott.sauyet@gmail.com> - 2012-10-16 04:30 -0700
  Re: radiobuttons and checkboxes SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-10-16 16:44 +0200
    Re: radiobuttons and checkboxes "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-10-16 19:32 +0300
      Re: radiobuttons and checkboxes SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-10-17 00:51 +0200
  Re: radiobuttons and checkboxes JJ <jaejunks_at@_googlemail_dot._com> - 2012-10-16 14:58 +0000
  Re: radiobuttons and checkboxes Matt McDonald <matt@fortybelow.ca> - 2012-10-16 12:00 -0400
    Re: radiobuttons and checkboxes "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-10-16 19:30 +0300
  Re: radiobuttons and checkboxes Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-16 17:23 +0000
  Re: radiobuttons and checkboxes Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-16 17:33 +0000
  Re: radiobuttons and checkboxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-16 21:00 +0200

csiph-web