check checkbox with value jquery ajax 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);
});