1document.getElementById("myCheckBoxID").checked = true; // Check
2document.getElementById("myCheckBoxID").checked = false;// Uncheck
3
1// Check
2document.getElementById("checkbox").checked = true;
3
4// Uncheck
5document.getElementById("checkbox").checked = false;