JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" name="chck" id="chk" value="IN" />INDIA<br>
<input type='button' value='Checked OR Not ?' id='check'>
<input type='button' value='Reset' id='reset'>
<script>
$('#check').click(function(){
$('#chk').attr('checked',true);
alert("checked");
});
$('#reset').click(function(){
$('#chk').attr('checked',false);
});
</script>