jquery to get array checkbox values 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());
});