Home > Back-end >  Select first form element of page, html
Select first form element of page, html

Time:05-26

Our login page of our store when loading selects the first form element of "account aanmaken", but we want it to select the first element of "Inloggen" called "Email". How can we do this?

form

CodePudding user response:

You can use the autofocus attribute on your <input> element to choose where the focus should go when the page is loaded.

Example:

<input type="email" name="email" autofocus>
  • Related