When you have multiple HMTL checkboxes with the same name, you can cycle through each of them to get the selected values into an array with jQuery.
var selectedArray = [];
$("input[name='checkboxName[]']:checked").each( function () {
selectedArray.push($(this).val());
});
0 Comments