get all checkbox in jquery code example
Example 1: jquery get all checkbox checked
$('.theClass:checkbox:checked')
Example 2: jquery get selected checkboxes
var selected = [];
$('#checkboxes input:checked').each(function() {
selected.push($(this).attr('name'));
});