How to prevent checking of a checkbox?

How to prevent checking of a checkbox ?

You can disable a checkbox by adding the disabled attribute:

<input type="checkbox" disabled />