JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="test" />

JavaScript

var $test = $('#test');
$(document.body).delegate('input', 'click', function ($e) {
console.log('delegate sees the input as - ' + this.checked);
});

console.log('before - ' + $test[0].checked);
$test[0].click();
console.log('after - ' + $test[0].checked)