[whatwg] Can we make checkboxes readonly?

Jonas Sicking jonas at sicking.cc
Wed Apr 6 15:43:51 PDT 2011


On Wed, Apr 6, 2011 at 3:39 PM, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:
> 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?

What are the use cases for readonly on <input type=text>? I would
imagine the use cases for checkbox isn't very different.

/ Jonas



More information about the whatwg mailing list