jquery get all checked checkbox values in array code example
Example 1: how to get name array value checked in jquery
$("input:checkbox[name=type]:checked").each(function(){
yourArray.push($(this).val());
});
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')