W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] Checkboxes that control other checkboxes

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 22 Nov 2012 00:51:39 +0000 (UTC)
To: Timo Beermann <timo.beermann@googlemail.com>
Message-ID: <Pine.LNX.4.64.1211220047421.15705@ps20323.dreamhostps.com>
Cc: whatwg@whatwg.org
On Sun, 14 Aug 2011, Timo Beermann wrote:
>
> It should be able to implemet checkboxes, where by only 
> activating/deactivating this single checkbox you can active/deactivate 
> multiple other checkboxes. That is possible with scripting today, but it 
> should be possible without scripting, only with HTML/CSS. Because some 
> users deactivate Scripting (for security or whatever other reason) and 
> on other computers (school, university, work,...) you are not able to 
> change the settings, even if you want to. E.g. I use NoScript and only 
> allow scripting on very few trusted sites, that really need it.

I haven't added this yet, but it is already logged as a possible future 
extension, so it's possible it may be added in the future.

What would be helpful though is examples of sites that do this kind of 
thing, so that we can study how necessary it is, and how to implement it. 
For instance, are the dependent fields always in a <fieldset>? Are they 
always other checkboxes? Is there more complex logic than just "check box 
A is checked so those controls are enabled"?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 22 November 2012 01:51:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT