/ Published in: jQuery

Set focus to the first text input element on a html document.
Expand |
Embed | Plain Text
$('input[type=text]:eq(0)').focus();
Comments

You need to login to post a comment.
Set focus to the first text input element on a html document.
$('input[type=text]:eq(0)').focus();
You need to login to post a comment.
this would also move the browsers view port to the first input element though right?