jquary to check check box from list 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'));
});