JSFiddle - React, Tailwind, and code Playground

HTML

<input type='checkbox' id='try' >try
<button id='click'>Click</button>

JavaScript

$("#try").change(function(event) {
    if (event.originalEvent === undefined) {
        alert('not human')
    } else {
        alert(' human');
    }


});

$('#click').click(function(ev) {
		if (ev.which !== undefined && ev.button !== undefined)
    	$("#try").click();
});