Method 1: The checkbox does not have a readOnly attribute. If you use the disabled="disabled" attribute, the checkbox will turn gray. Users are disgusted with this style. You can keep it only like this Read:
Set its onclick="return false"
In js it is checkbox.onclick=function(){return false;};
Method 2: