Designate the username field as required, and focus on the name field when the page loads: | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Designate the username field as required, and focus on the name field when the page loads:

<form autocomplete="off"> <input name="name" type="text" /> <br /> <input name="username" type="text" /> </form>

20th Apr 2017, 2:39 PM
Abdallah Elsayed Abdel kader
Abdallah Elsayed Abdel kader - avatar
2 Answers
+ 1
<form autocomplete="off"> <input name="name" type="text" autofocus /> <br /> <input name="username" type="text" required /> </form>
20th Apr 2017, 3:07 PM
เคฆเฅ‡เคตเฅ‡เค‚เคฆเฅเคฐ เคฎเคนเคพเคœเคจ (Devender)
เคฆเฅ‡เคตเฅ‡เค‚เคฆเฅเคฐ เคฎเคนเคพเคœเคจ (Devender) - avatar
0
<body> <form autocomplete="off"> <input name="name" type="text" autofocus /> <br /> <input name="username" type="text" required /> </form> </body>
3rd May 2019, 2:45 PM
nice1 forever
nice1 forever - avatar