JSFiddle - React, Tailwind, and code Playground

by j08691

HTML

<input type="checkbox" class="mes_sel">

JavaScript

$("body").on("click", ".mes_sel", function() {
    if ($(this).is(":checked")) {
        alert("Checked");
    }
    else alert("Not Checked");
});