<html>
<body>
<h3>A demonstration of how to access a Checkbox</h3>
Checkbox: <input type="checkbox" id="myCheck">
<p>Click the "Try it" button to check the checkbox.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var x = document.getElementById("myCheck");
x.checked = true;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_checkbox_get by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:05:50 GMT -->
</html>