JSFiddle - React, Tailwind, and code Playground
by Eric Hynds
HTML
<input type="checkbox" id="foo" value="bar" />
JavaScript
$(document).delegate(":checkbox", "click", function(){
alert( this.checked );
});
$(":checkbox").trigger("click").trigger("click");