jquery show checkbox values on click 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);
});