javascript check uncheck checkbox

JavaScript
document.getElementById("myCheckBoxID").checked = true; // Check
document.getElementById("myCheckBoxID").checked = false;// Uncheck

Source

Also in JavaScript: