This blog is titled the way it is, because this is the method by which I came to learn most of the following information. 🤪
Thursday, May 3, 2012
Selecting the First Field in a Form
On an HTML page where you want the first field on the page to be selected by default, you can add the following code. This uses jQuery to find all of the ‘text’ input boxes, and then sets the focus to the first one found.
Or put this at the bottom of your master page if you want it done everywhere.