JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <input type="checkbox" name="something">
    </br>
    </br>
    </br>
    <input type="button" value="check the box" id="select" />
</div>

JavaScript

$("body").on("change", "input[type=checkbox]", function () {
    alert("checked");
});


$("body").on("click", "#select", function () {
    $("input[type=checkbox]").prop("checked", false).change();
});