JSFiddle - React, Tailwind, and code Playground
by tomgrohl
HTML
<form id="frm">
<input id="target2" type="checkbox" />
</form>
JavaScript
$(":input").attr("checked", "checked");
by tomgrohl
<form id="frm">
<input id="target2" type="checkbox" />
</form>
$(":input").attr("checked", "checked");