JSFiddle - React, Tailwind, and code Playground

by hallmanbilly

HTML

<table id="tblTest">
    <tr>
        <td value="0">Value is zero</td>
    </tr>
     <tr>
        <td value="1">Value is one</td>
    </tr>
</table>

JavaScript

$('#tblTest').on('click','tr', function(){
   alert($(this).children(':first').attr('value')); 
});