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

[whatwg] Can we make checkboxes readonly?

From: Glenn Maynard <glenn@zewt.org>
Date: Wed, 2 May 2012 18:17:05 -0500
Message-ID: <CABirCh9J1Kh=q=up-1A2q0hb8123c4xgqTHfkrHSynyHfxF4tw@mail.gmail.com>
On Wed, May 2, 2012 at 5:57 PM, Ian Hickson <ian at hixie.ch> wrote:

> On Wed, 6 Apr 2011, Jonas Sicking wrote:
> > What are the use cases for readonly on <input type=text>? I would
> > imagine the use cases for checkbox isn't very different.
>

(year+13mon)

It's useful if you want to have an isolated block of text that's easy to
copy-and-paste, without the selection spilling into adjacent text; you just
double-click the input, or focus it and hit ^A.  That isn't relevant for
checkboxes and radio buttons, of course.

-- 
Glenn Maynard
Received on Wednesday, 2 May 2012 16:17:05 GMT

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