Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if checkbox is checked jquery

//using plane javascript 
if(document.getElementById('on_or_off_checkbox').checked) {
    //I am checked
} 

//using jQuery
if($('#on_or_off_checkbox').is(':checked')){
    //I am checked
}
 
PREVIOUS NEXT
Tagged: #check #checkbox #checked #jquery
ADD COMMENT
Topic
Name
2+9 =