JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<table id='tbl1'>
<tbody>
<tr id='tr1'>
<td id='td1'>this is td1</td1>
<td id='td2'>this is td2</td1>
</tr>
<tr id='tr2'>
<td id='td3'>this is td3</td1>
<td id='td4'>this is td4</td1>
</tr>
</tbody>
</table>
</body>
JavaScript
$(document).ready(function() {
$("#tbl1 tbody tr").mousedown(function(event) {
if (event.which === 3) {
alert($(this).attr("id"));
}
});
});