how to read the all checkbox in jquery code example
Example 1: select all checkboxes jquery
$('input:checkbox').prop('checked', true);
Example 2: check checkbox based on value using jquery
$.each(arrayValues, function(i, val){
$("input[value='" + val + "']").prop('checked', true);
});