jquery set focus code example
Example 1: set focus javascript
document.getElementById("ThingToSetFocusOn").focus();
Example 2: jquery give control focus
$('.class').focus();
$('#name').focus();
document.getElementById("ThingToSetFocusOn").focus();
$('.class').focus();
$('#name').focus();