get values of checkbox checked by input type name in jquery code example
Example: get checked checkbox jquery by name
//option 1:
checkboxes.filter(":checked").map(function () {
return this.value;
}).get()
//Option 2
var selected = [];
$('[name="price[]"]:checked').each(function(checkbox) {
selected.push(checkbox);
});