JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="checkbox1" /> <br />
JavaScript
$(document).ready(function() {
//set initial state.
$('#checkbox1').on('change', function(event) { alert(1); });
});ha
<input type="checkbox" id="checkbox1" /> <br />
$(document).ready(function() {
//set initial state.
$('#checkbox1').on('change', function(event) { alert(1); });
});ha