JSFiddle - React, Tailwind, and code Playground
by Bhabani Raju
HTML
<form>
<input type="checkbox" name="CheckboxValue" >
<input type="checkbox" name="CheckboxValue2" value="true" >
</form>
JavaScript
$(':checkbox').click(function(){
alert($('form').serialize());
});