JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" name="check">
<input type="button" onclick="manual_click();" value="Check">
JavaScript
function manual_click() {
$("input[name='check']").prop('checked', true);
}
$(document).ready(function(){
$("input[name='check']").on('change', function(){
alert('check');
});
});