JSFiddle - React, Tailwind, and code Playground
by sc0rp10
HTML
<label>
<input id="foo" type="checkbox" />
<span>label</span>
</label>
JavaScript
$("#foo").bind("change", function(){
alert("foo");
})
by sc0rp10
<label>
<input id="foo" type="checkbox" />
<span>label</span>
</label>
$("#foo").bind("change", function(){
alert("foo");
})