JSFiddle - React, Tailwind, and code Playground
by John Doe
HTML
<table>
<tr data-link="ee">
<th>th</th>
<th>th</th>
</tr>
<tr data-link="ee">
<td>td</td>
<td class="last">td</td>
</tr>
<tr data-link="rr">
<td>td</td>
<td class="last">td</td>
</tr>
</table>
JavaScript
$('td').not('.last').click(function(){
var x = $(this).parent().data('link');
alert(x);
location.href='http://www.example.com';
});