R/O checkbox - EMY

8 views
Skip to first unread message

Rune Back

unread,
Jan 1, 2018, 6:09:06 AM1/1/18
to iphone...@googlegroups.com
This doesn't seem to work:

<input type="checkbox" name="checkbox" id="checkbox1" value="1" readonly>

How should I do a R/O checkbox?

Mogens Beltoft

unread,
Jan 1, 2018, 6:28:19 AM1/1/18
to iphone...@googlegroups.com
Try disabled instead of readonly.

/Mogens
--
You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iphonewebdev...@googlegroups.com.
To post to this group, send email to iphone...@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Remi Grumeau

unread,
Jan 1, 2018, 2:04:21 PM1/1/18
to iphonewebdev
Mogens is right, "readonly" makes sense on inputs that has text in them (text, date, password, email, ...)
For booleans like radio or checkbox, it's disabled.


Remi


Remi

On Mon, Jan 1, 2018 at 12:28 PM, Mogens Beltoft <mog...@beltoft.dk> wrote:
Try disabled instead of readonly.

/Mogens


On 01-01-2018 12:08, Rune Back wrote:
This doesn't seem to work:

<input type="checkbox" name="checkbox" id="checkbox1" value="1" readonly>

How should I do a R/O checkbox?

--
You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iphonewebdev+unsubscribe@googlegroups.com.

To post to this group, send email to iphone...@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iphonewebdev+unsubscribe@googlegroups.com.

Rune Back

unread,
Jan 2, 2018, 4:00:26 AM1/2/18
to iphone...@googlegroups.com
Yep! It works like a dream! Thanks!
Reply all
Reply to author
Forward
0 new messages