JSFiddle - React, Tailwind, and code Playground
HTML
<input class='checkboxstatus' def='0' type=checkbox></input>
JavaScript
$(document).ready(function(){
$('.checkboxstatus').click(function(){
this.setAttribute('checked',this.checked);
if($(this).checked && $(this).def == '0'){
//checkbox has changed
alert('checkbox has changed from original value');
}
});
});