get input type checkbox javascript

Solutions on MaxInterview for get input type checkbox javascript by the best coders in the world

showing results for - "get input type checkbox javascript"
Clodagh
28 Jul 2020
1<html>
2<body>
3
4Checkbox: <input type="checkbox" id="myCheck">
5
6<button onclick="check()">Check Checkbox</button>
7
8<script>
9function check() {
10  alert(document.getElementById("myCheck").checked);
11}
12</script>
13
14</body>
15</html>