Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery checkbox checked or not

$('input[type="checkbox"]').click(function(){
            if($(this).is(":checked")){
                console.log("Checkbox is checked.");
            }
            else if($(this).is(":not(:checked)")){
                console.log("Checkbox is unchecked.");
            }
        });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #checkbox #checked
ADD COMMENT
Topic
Name
1+4 =