JSFiddle - React, Tailwind, and code Playground

by missingno

HTML

<table>
    <tr>
        <td> <a href="www.pudim.com.br"> 111 </a> </td>
        <td> Ones </td>
        </tr>
    <tr>
        <td> <a>222</a> </td>
        <td> Twos </td>
    </tr>
</table>

<hr>

<ul id="log"></ul>

CSS

td {
    border: 1px solid;
}

a:hover {
    background-color: green;
}

JavaScript

function print(msg){
    $('#log').append( $('<div>').text(msg) );
}

$('a').click(function(){
    print( $(this).text() );
});

$('tr').click(function(){
    var on = true;
    return function(){
        if(on){
            on = false;
            $(this).find('a').trigger('click');
        }
        on = true;
    }
}());