check checkbox is hecked js code example Example: dom check a checkbox document.getElementById("myCheck").checked = true;