how to set checkbox readonly in html code example Example: checkbox readonly <input type="checkbox" onclick="return false;"/>