Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get boolean if checkbox is checked

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

if(checkbox.checked){
    console.log('test');
}
 
PREVIOUS NEXT
Tagged: #javascript #boolean #checkbox #checked
ADD COMMENT
Topic
Name
4+8 =