JSFiddle - React, Tailwind, and code Playground HTML <input type="checkbox" class="myCheckBox"> JavaScript $(".myCheckBox")[0].checked = true;