get input type checkbox javascript
<html>
<body>
Checkbox: <input type="checkbox" id="myCheck">
<button onclick="check()">Check Checkbox</button>
<script>
function check() {
alert(document.getElementById("myCheck").checked);
}
</script>
</body>
</html>