/ 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
Subscribe to 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();
Subscribe to comments
You need to login to post a comment.
this would also move the browsers view port to the first input element though right?