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();
/* setTimeout(
'document.getElementById("test").focus();',
100) */
// $("#test").select();
setTimeout(function(){
$("#test").select();
},100);
});