how to get select all checkbox in jquery 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'));
});