JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<table>
<tr>
<td>Item</td>
<td>Input</td>
<td>Current</td>
</tr>
<tr>
<td>First Name</td>
<td>
<input type="text" />
</td>
<td></td>
</tr>
<tr>
<td>Last Name</td>
<td>
<input type="text" />
</td>
<td></td>
</tr>
</table>
</body>
JavaScript
$('table td:nth-child(2) input').focus(
function() {
$(this).parent().next().css("background-color", "#00FF00");
});
$('table td:nth-child(2) input').blur(
function() {
$(this).parent().next().css("background-color", "#FFFFFF");
});