html input focus events code example
Example 1: focus on input
document.getElementById("myText").focus();
Example 2: focus on input
$("input:text:visible:first").focus();
document.getElementById("myText").focus();
$("input:text:visible:first").focus();