checkbox value javascript jquery code example
Example: check checkbox based on value using jquery
$.each(arrayValues, function(i, val){
$("input[value='" + val + "']").prop('checked', true);
});
$.each(arrayValues, function(i, val){
$("input[value='" + val + "']").prop('checked', true);
});