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

[whatwg] Can we make checkboxes readonly?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 07 Apr 2011 00:12:24 +0200
Message-ID: <4D9CE548.4070104@lachy.id.au>
On 2011-04-06 22:45, Tab Atkins Jr. wrote:
> Currently, the spec disallows checkboxes from being made readonly.  Is
> there some good reason for this?  If not, can we change it?
> Checkboxes being readonly would be useful for the same reasons that
> text inputs being readonly is.

What's wrong with using disabled?

<input type="checkbox" disabled>
<input type="checkbox" disabled checked>

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Wednesday, 6 April 2011 15:12:24 GMT

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