check and uncheck checkbox javascript code example
Example 1: javascript check uncheck checkbox
document.getElementById("myCheckBoxID").checked = true; // Check
document.getElementById("myCheckBoxID").checked = false;// Uncheck
Example 2: uncheck checkbox based on id js
const checkBox = doument.getElementById(id);
checkBox.checked = false;