JSFiddle - React, Tailwind, and code Playground
by vincentpace
HTML
<input type="text" id="test" tabindex="1">
JavaScript
$(document).ready(function(){
// $("#test").focus();
// $("#test").trigger('focus');
/* setTimeout(function(){
$("#test").focus();
},100); */
/* setTimeout(function(){
$("#test").trigger('focus');
},100); */
document.getElementById("test").focus();
});