map what checkboxes are checked jquery code example
Example: how to get name array value checked in jquery
$("input:checkbox[name=type]:checked").each(function(){
yourArray.push($(this).val());
});
$("input:checkbox[name=type]:checked").each(function(){
yourArray.push($(this).val());
});