JSFiddle - React, Tailwind, and code Playground
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");
}
})