Working on one of my web projects recently I came accross a need for presenting some readonly data as part of the user input form. The readonly property of the input tags seem to work as expected for other types of input control, but not for the checkbox.
<input id="chkExempt" type="checkbox" readonly="readonly" /> Exemption
The result is a checkbox that is "greyed out" in appearance but still responds as normal to user interaction (ie: clicking checks/unchecks). I also tried this with
readonly="true" as seems to be the Microsoft way of doing things, but the results were the same.
I can of course set the checkbox to be disabled, but then it no longer is pushed back to the server as part of the form post, which I needed.