JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="#finished-checker" value="value"> <label for="finished-check">Check if assessment is complete.</label>
JavaScript
jQuery(function ($) {
$('#finished-checker').change(function () {
console.log("this.checked = " + this.checked);//TEST
$.post({
method: 'POST',
url: '/Answers/UpdateFinishedValue',
data: { finished: this.checked },
success: function (retobj) {
console.log(retobj);//TEST
},
error: function () {
console.log("Error ...");
}
});
});
});