Posted: 10/10/2011
Hi,In my page there are many textbox controls. Now I need to put focus on them via JavaScript code. How should I do the same?
Posted: 10/11/2011
peter smith said: Hi,In my page there are many textbox controls. Now I need to put focus on them via JavaScript code. How should I do the same?
At a time focus can be only on one textbox. So to set focus on a textbox you can use .focus() as following
Java script:
document.getElementById("textboxid").focus();
Jquery:
$('#textboxID').focus();