JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox">1
<input type="checkbox">2
<button id="clear">Clear</button>
JavaScript
$("#clear").click(function(){
$('input[type="checkbox"]').prop('checked',false);
});
<input type="checkbox">1
<input type="checkbox">2
<button id="clear">Clear</button>
$("#clear").click(function(){
$('input[type="checkbox"]').prop('checked',false);
});