Prevent a checkbox from being unchecked in JavaScript Prevent the input type checkbox from being unchecked using preventDefault() method.
Prevent a checkbox from being unchecked in JavaScript Prevent the input type checkbox from being unchecked using preventDefault() method.