checkbox checked array push with key and value 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());
});