var ids = [];
$("[name='ids[]']").each(function() {
if ($(this).prop("checked") == true) {
ids.push($(this).val());
}
});var ids = [];
$("[name='ids[]']").each(function() {
if ($(this).prop("checked") == true) {
ids.push($(this).val());
}
});