get all checked checkboxes jquery on button click code example
Example: jquery get selected checkboxes
var selected = [];
$('#checkboxes input:checked').each(function() {
selected.push($(this).attr('name'));
});
var selected = [];
$('#checkboxes input:checked').each(function() {
selected.push($(this).attr('name'));
});