I am using Bootstrap iCheck plugin. How can i find out Whether a check box is checked or not by pressing a button using jquery
$(button).click(function(){
  ckb = $("#ickb").(isChecked);
});
                Try to use .is() function along with :checked selector to accomplish your task,
ckb = $("#ickb").is(':checked');
                        Use is() with :checked to get the result as boolean that is true if checkbox is checked.
ckb = $("#ickb").is(':checked');
Or, you can use length, if it is zero then it is not checked.
ckb = $("#ickb:checked").length
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With