JSFiddle - React, Tailwind, and code Playground
HTML
<div class='row'>
<input type='radio' name='theradio' />
<input type='radio' name='theradio' />
<input type='text' />
<select>
<option>one</option>
<option>two</option>
</select>
</div>
CSS
.hilite {
background: yellow;
}
JavaScript
$('input, textarea, select').focus(function(){
$(this).parents('.row').addClass("hilite");
}).blur(function(){
$(this).parents('.row').removeClass("hilite");
});
$(':radio').click(function() {
$(this).focus();
$(this).parent().focus();
});