1$('#checkbox_id:checked').val();
2//if checkbox is selected than gets its value
1console.log($('input[name="locationthemes"]:checked').serialize());
2
3//or
4
5$('input[name="locationthemes"]:checked').each(function() {
6 console.log(this.value);
7});
1$("#merge_button").click(function(event){
2 event.preventDefault();
3 var searchIDs = $("#find-table input:checkbox:checked").map(function(){
4 return $(this).val();
5 }).get(); // <----
6 console.log(searchIDs);
7});
8