JSFiddle - React, Tailwind, and code Playground

HTML

<table border="0" cellpadding="20">
    <tr>
        <td>Text</td>
        <td height="50" width="100" id="somename"><input type="text" value="" id="mirza"></td>
    </tr>
</table>

JavaScript

$('input').focus(function() {
    $('tr').css("background-color", "#c00");
});