JSFiddle - React, Tailwind, and code Playground

HTML

<table>
  <tr>
    <td>
      <input type="checkbox" id="test" checked="checked" class='cbCheck' />
    </td>
     <td>
      <input type="checkbox" id="test1" checked="checked" class='cbCheck' />
    </td>
     <td>
      <input type="checkbox" id="test2" checked="checked" class='cbCheck' />
    </td>

  </tr>

</table>

JavaScript

$('table tr td').on('click','.cbCheck',function() {
  if ($(this).is(':checked')) {
    alert($(this).attr('id'))
  }
  else
  alert('unchecked');
});