$('#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);
});
var selected = [];
$('#checkboxes input:checked').each(function() {
selected.push($(this).attr('name'));
});
$('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);
});
$("#check").change(function () {
if (this.checked) {
//I am checked
name_val = $('#name').val();
$('#player').val(name_val);
} else {
//I'm not checked
$('#player').val('');
}
});