JSFiddle - React, Tailwind, and code Playground

HTML

<table id="tbl1">
    <tbody>
        <tr id="1"><td>One</td></tr>
        <tr id="2"><td>Two</td></tr>
        <tr id="3"><td>Three</td></tr>
    </tbody>
</table>

JavaScript

$(document).ready(function(){
    $("#tbl1 tbody tr").bind("contextmenu",function(e) {
       e.preventDefault();
       alert($(this).attr('id'));
    });
})