JSFiddle - React, Tailwind, and code Playground

HTML

<table id="table">
    <thead>
      <tr class='tablehead'>
        <th>Test</th>
      </tr>
    </thead>
    <tbody>
      <tr class='tablecell'>
        <td>Testfoobar
        </td>
      </tr>
    </tbody>
</table>

JavaScript

$(document).ready(function() {
$('#table >thead > tr').dblclick(function(){
alert('Row dblclicked');
    alert($(this).attr('class'));
});
});