JSFiddle - React, Tailwind, and code Playground
by Ehsan Sajjad
HTML
<input type="checkbox" name="copyAddress" id="copyAddress" value="1" />
JavaScript
$('#copyAddress').change(function () {
this.checked
? alert ("Checked")
: alert ("Unchecked");
});