JSFiddle - React, Tailwind, and code Playground

by Anik Islam Abhi

HTML

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

JavaScript

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