W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

[whatwg] Can we make checkboxes readonly?

From: Randy <randy@prowebdesign.nl>
Date: Thu, 7 Apr 2011 11:32:07 +0000
Message-ID: <1063036870-1302176507-cardhu_decombobulator_blackberry.rim.net-1961616347-@b3.c10.bise7.blackberry>
Simple use case with existing car configurators:
When a car feature / accessory is selected that requires another feat. / access., I don't want customers to uncheck that feature, but still need the submission of the required features.

Or the Mootools library builder:
Depending modules need to be selected and submitted in order to generate the correct javascript file.

Yes, you can re-add that logic server-side, but why would you want to add that kind of logic twice. 

My 2 cents 


-----Original Message-----
From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Sender: whatwg-bounces at lists.whatwg.orgDate: Thu, 07 Apr 2011 00:39:04 
To: Tab Atkins Jr.<jackalmage at gmail.com>
Cc: WHATWG List<whatwg at whatwg.org>
Subject: Re: [whatwg] Can we make checkboxes readonly?

On 2011-04-07 00:28, Tab Atkins Jr. wrote:
> On Wed, Apr 6, 2011 at 3:12 PM, Lachlan Hunt<lachlan.hunt at lachy.id.au>  wrote:
>> What's wrong with using disabled?
>> <input type="checkbox" disabled>
>> <input type="checkbox" disabled checked>
> Disabled elements don't participate in form submission.

That's true, but if the controls are readonly, then the user can't 
change the value and so why does that matter?  Could you clarify the use 
case for having a readonly checkbox value submitted?

Lachlan Hunt - Opera Software
Received on Thursday, 7 April 2011 04:32:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:05 UTC