Make a checkbox read-onlyTag(s): Form

With a small javascript function, you can have a good looking read-only checkbox and not use the greyed disabled look.
function readOnlyCheckBox() {
   return false;
<input type="checkbox" id="cbx1"
  ` onClick="return readOnlyCheckBox()" CHECKED /> readonly
<input type="checkbox" id="cbx2"
    CHECKED DISABLED/> disabled
It looks like this :

Note :The visual is a little bit different of a plain-html rendering because of the framework used to build this site!

blog comments powered by Disqus