get all checkbox value in jquery code example

Example 1: checkbox on click jquery select all

$("#checkAll").click(function(){
    $('input:checkbox').not(this).prop('checked', this.checked);
});

Example 2: get value of all checked boxes jquery

var values = $('input[name=grepperRocks]:checked')
               .map(() => { return this.value }).get();

Example 3: jquery get all checkbox checked

$('.theClass:checkbox:checked')

Example 4: select all checkboxes jquery

$('input:checkbox').prop('checked', true);

Example 5: select all checkbox jquery

$('#select_all').change(function() {
  var checkboxes = $(this).closest('form').find(':checkbox');
  checkboxes.prop('checked', $(this).is(':checked'));
});

Example 6: find all checkbox inside div jquery

$('#selectChb').click(function(){ 
     $(':checkbox').prop("checked", true);
});