JSFiddle - React, Tailwind, and code Playground

by code_rum

HTML

<script type="text/javascript">
$(function(){
    $('#test1').click(function(){
        if ($('#test1').is(":checked")) {
        alert('checked');
    }
    });
});
</script>

<input type="checkbox" id="test1" value="test1" name="test1" value="1" /> test1