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.
<HTML>
<HEAD>
<SCRIPT>
function readOnlyCheckBox() {
   return false;
}
</SCRIPT>
<BODY>
<input type="checkbox" id="cbx1"
  ` onClick="return readOnlyCheckBox()" CHECKED /> readonly
<br/>
<input type="checkbox" id="cbx2"
    CHECKED DISABLED/> disabled
</BODY>
</HTML>
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