$('#checkbox_id:checked').val();
//if checkbox is selected than gets its value
let weekdays = $('input[name="weekday"]:checked').map(function () {
return $(this).val()
}).get()
$('input[name="checkboxGroup"]:checked'); // returns checked input objects
$("#merge_button").click(function(event){
event.preventDefault();
var searchIDs = $("#find-table input:checkbox:checked").map(function(){
return $(this).val();
}).get(); // <----
console.log(searchIDs);
});
$(":checkbox[value=4]").prop("checked","true");