Answers for "javascript get boolean if checkbox is checked"

0

javascript get boolean if checkbox is checked

var checkbox = document.getElementById('checkbox');

if(checkbox.checked){
    console.log('test');
}
Posted by: Guest on January-27-2021

Code answers related to "javascript get boolean if checkbox is checked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language