JSFiddle - React, Tailwind, and code Playground

by yoowordpress

JavaScript

$("body").append("<input type='checkbox' class='gg' name='member' checked='checked'>");
$("body").append("<input type='checkbox' name='member' checked='checked'>");


$(document).on("change", "input.gg", function () {
    alert("FECK");
    if (this.checked) {}
});