JSFiddle - React, Tailwind, and code Playground

HTML

<table>
<tr>
    <td>1</td>
    <td>2</td>
    <td>3</td>
   </tr>
</table>

JavaScript

$('td:last').on('click', function(){
    $(this).siblings('td:first').css('color', 'red');    
})