JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" />
<a href="#" id="test">Change CheckBox</a>
JavaScript
$(function() {
$('#est').click(function() {
$("input[type='checkbox']").click();
return false;
});
$("input[type='checkbox']").change(function(){
console.log("Checkbox changed.");
});
});