JSFiddle - React, Tailwind, and code Playground
by Drath
HTML
<form>
<input type="checkbox" />
</form>
JavaScript
$(function () {
$('input[type="checkbox"]').click(function () {
$.post(location.href, { testpost: 'test' })
.done(function(data) {
alert("Data Loaded: " + data);
});
return false;
});
});