checkbox checked or unchecked javascript code example
Example 1: fill checkbox javascript
// Check
document.getElementById("checkbox").checked = true;
// Uncheck
document.getElementById("checkbox").checked = false;
Example 2: checked unchecked through js
document.getElementById("checkbox_id").checked;
//If checked returns true;
//else returns false;