JSFiddle - React, Tailwind, and code Playground
by tr_santi
HTML
<div class="producttable">
<table>
<tbody>
<tr id="TEST">
<th>Product</th>
<th>SKU</th>
</tr>
<tr id="TEST2">
<td>Product1</td>
<td>SKU1</td>
</tr>
<tr id="TEST3">
<td>Product2</td>
<td>SKU2</td>
</tr>
</tbody>
</table>
</div>
JavaScript
$(".producttable tr").click(function() {
alert($(this).attr("id"));
})