Answers for "input type checkbox javascript"

1

commande checkbox html

<!doctype html>
<html>
  <body>
    
    <input type="checkbox">
    <input type="radio">
    
  </body>
</html>
Posted by: Guest on June-15-2020
0

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>
Posted by: Guest on July-05-2021

Browse Popular Code Answers by Language