javascript get boolean if checkbox is checked code example
Example: javascript get boolean if checkbox is checked
var checkbox = document.getElementById('checkbox');
if(checkbox.checked){
console.log('test');
}
var checkbox = document.getElementById('checkbox');
if(checkbox.checked){
console.log('test');
}