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); }); 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); }); 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 $("#ickb:checked").length Your answer helped me