JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" value="howdy"/>
JavaScript
$("input:checkbox").change(function(){
alert($(this).val());
});
<input type="checkbox" value="howdy"/>
$("input:checkbox").change(function(){
alert($(this).val());
});