I have an array something like
var values = [\'1\',\'3\',\'4\',\'5\'];
I have the list of checkboxes
Try
$("#list").find('[value=' + values.join('], [value=') + ']').prop("checked", true);
Demo: Fiddle