Answers for "checkbox if true then set to checked"

5

if checkbox is checked

if ($('#id_input').is(':checked')) { }
Posted by: Guest on March-17-2020
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 "checkbox if true then set to checked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language