1$('.myCheckbox').prop('checked', true);
2$('.myCheckbox').prop('checked', false);
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});
1var grenval = $('.green').val();
2 $('.showCheckedValue').text(redval+'&'+grenval );