JSFiddle - React, Tailwind, and code Playground
HTML
<input type=checkbox id=check />
<input type=button id=test value=on />
<input type=button id=test2 value=off />
JavaScript
$("#test").click(function() {
$("#check").prop("checked", true);
});
$("#test2").click(function() {
$("#check").prop("checked", false);
});