JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" name="chk" value="1"/>
<input type="checkbox" name="chk" value="2"/>
<input type="checkbox" name="chk" value="3"/>
<input type="checkbox" name="chk" value="4"/>
<input type="checkbox" name="chk" value="5"/>
<input type="checkbox" name="chk" value="6"/>
<input type="checkbox" name="chk" value="7"/>
JavaScript
var $cbs = $("input[name:]");
$.each([1,2,3,6], function(){
$cbs.filter('[value="'+this+'"]').prop('checked', true);
})