JSFiddle - React, Tailwind, and code Playground
by Ehsan Sajjad
HTML
<form id='myform' method='post' action=''>
<table id='mytable'>
<tr>
<td></td>
<td></td>
<td><input type='checkbox' name='mycheckbox' class='mycheckbox' /></td>
<tr>
<tr>
<td class="Total">Total Checked</td>
<td class="TotalCount">TOTAL_CHECKED_COUNT</td>
</tr>
</table>
</form>
JavaScript
$(".mycheckbox").change(function(){
$(".Total").text($(".mycheckbox:checked").length);
})