JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input type="text" tabindex="1"><br>
<input type="text" tabindex="2"><br>
<input type="text" tabindex="3"><br>
<input type="text" tabindex="4"><br>
</form>
CSS
input:focus
{
background-color:yellow;
}
JavaScript
$(function () {
$("*[tabindex='3']").focus();
});