checkbox selected jq 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'));
});