Obscurr said:
hi,
is there a way of making checkboxes "non-touchable" like ¨with the use
of the input type=text's READONLY attributte?
It works exactly the same way, check the specification
<
http://www.w3.org/TR/html4/interact/forms.html#h-17.12>, or use the
simple examples below:
To have it always checked:
<input type="checkbox" name="my_readonly_box" checked readonly>
To have it never checked:
<input type="checkbox" name="my_readonly_box" readonly>
If you're using XHTML:
<input type="checkbox" name="my_readonly_box" readonly="readonly"
checked="checked">
And don't forget that some browsers might not support the readonly
attribute, or let the browser override it. So always do server-side
validation (a must anyway, just thought I'd mention it).
Matthias