JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="home" class="check">
JavaScript
$(".check").click(function() {
if($(this).is(":checked"))
{
alert('home is checked');
}
});
<input type="checkbox" id="home" class="check">
$(".check").click(function() {
if($(this).is(":checked"))
{
alert('home is checked');
}
});