1$('#checkbox_id:checked').val();
2//if checkbox is selected than gets its value
1$.each(arrayValues, function(i, val){
2
3 $("input[value='" + val + "']").prop('checked', true);
4
5});
6
1var grenval = $('.green').val();
2 $('.showCheckedValue').text(redval+'&'+grenval );