jquery input checkbox is selected 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'));
});