JSFiddle - React, Tailwind, and code Playground

HTML

<form id="myform">
    <input type="checkbox" name="chk_123">
    <input type="checkbox" name="chk_456">
    <input type="checkbox" name="chk_23">
    <input type="checkbox" name="chk_3">
    <input type="checkbox" name="chk_443">
    <input type="checkbox" name="chk_6764">
</form>

JavaScript

$('#myform input[type="checkbox"]').change(function() {
    alert("You just clicked checkbox with the name " + this.name)
});