how to set focus to an element using javascript code example
Example 1: focus js
focusMethod = function getFocus() {
document.getElementById("myButton").focus();
}
Example 2: focus js
focusMethod = function getFocus() {
document.getElementById("myTextField").focus();
}