JSFiddle - React, Tailwind, and code Playground

by tomgrohl

HTML

<form id="frm">
    <input id="target2" type="checkbox" />
</form>

JavaScript

$(":input").attr("checked", "checked");