JSFiddle - React, Tailwind, and code Playground

by scubafly

HTML

<label>
    <input type='checkbox' checked="checked" />
    CLICK ME....
</label>

JavaScript

$(document).ready(function(){
    $("label").change(function(){
        alert($(this).children("input[type='checkbox']").prop('checked'));
    });
});