How can to locate all selected checkboxes by using the jQuery selector? code example
Example 1: select all checkboxes jquery
$('input:checkbox').prop('checked', true);
Example 2: select all checkbox jquery
$('#select_all').change(function() {
var checkboxes = $(this).closest('form').find(':checkbox');
checkboxes.prop('checked', $(this).is(':checked'));
});