JSFiddle - React, Tailwind, and code Playground
HTML
<label>
<input type='checkbox' checked="checked" />
CLICK ME....
</label>
JavaScript
$("label").on("click",function(){
$.each($(this).children("input[type='checkbox']"), function(index, value){
$(value).click(function(e) {
e.stopPropagation();
});
if ($(value).is(':checked'))
{
alert("checked");
return false;
}else
{
alert("not checked");
return false;
}
})
});