Focus To The First Text Input Element


/ Published in: jQuery
Save to your folder(s)

Set focus to the first text input element on a html document.


Copy this code and paste it in your HTML
  1. $('input[type=text]:eq(0)').focus();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.