$('#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();
$(":checkbox[value=4]").prop("checked","true");
$.each(arrayValues, function(i, val){
$("input[value='" + val + "']").prop('checked', true);
});
var grenval = $('.green').val();
$('.showCheckedValue').text(redval+'&'+grenval );