JSFiddle - React, Tailwind, and code Playground

by Anik Islam Abhi

HTML

<table>
  <tr>
    <td>dsfdsf</td>
    <td>sdfsdfsdf</td>
    <td>Well I am row
      <form type="submit" action="">I am form</form>
    </td>
  </tr>
</table>

JavaScript

$(document).on("click", "tr", function(e) {
  if ($(e.target).closest('form[type="submit"]').length == 0) {
    console.log("clicked");
  }
})