Obtenez la valeur de la coche sélectionnée jQuery
$('#checkbox_id:checked').val();
//if checkbox is selected than gets its value
M. Wasim Abbasi
$('#checkbox_id:checked').val();
//if checkbox is selected than gets its value
console.log($('input[name="locationthemes"]:checked').serialize());
//or
$('input[name="locationthemes"]:checked').each(function() {
console.log(this.value);
});
$('input[name="checkboxGroup"]:checked'); // returns checked input objects
$("input[type='checkbox']").val();
$('#check_id').val();
$("#merge_button").click(function(event){
event.preventDefault();
var searchIDs = $("#find-table input:checkbox:checked").map(function(){
return $(this).val();
}).get(); // <----
console.log(searchIDs);
});