checkbox value jquery always on 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);
});