JSFiddle - React, Tailwind, and code Playground
HTML
<span>
<input type="checkbox">
</span>
JavaScript
$('span').click(function(e) {
e.preventDefault();
$(':checkbox')[0].checked = true;
});
<span>
<input type="checkbox">
</span>
$('span').click(function(e) {
e.preventDefault();
$(':checkbox')[0].checked = true;
});