RSS

Category Archives: jQuery

How to get all selected checkboxes VALUES in jquery

var checkedValues = $(‘input:checkbox:checked’).map(function() {
return this.value;
}).get();

 
Leave a comment

Posted by on September 12, 2014 in jQuery

 

How to Select / Deselect All Checkboxes using jQuery

jQuery('#checkAll').click(function(){    
    jQuery(':checkbox.checkItem').prop('checked',this.checked);
});
 
Leave a comment

Posted by on June 20, 2014 in jQuery