1$.each(arrayValues, function(i, val){
2
3 $("input[value='" + val + "']").prop('checked', true);
4
5});
6
1$('.myCheckbox')[0].checked = true;
2$('.myCheckbox')[0].checked = false;
1var grenval = $('.green').val();
2 $('.showCheckedValue').text(redval+'&'+grenval );