How to auto-populate the OTP code

Anil Verma
Dec 21, 2020

To auto-populate the OTP code(Trigger smartphone OTC auto-suggestion) in input field use autocomplete=”one-time-code”

<input name=”otp” placeholder=”enter otp” type=”text” autocomplete=”one-time-code” />

--

--

Anil Verma

Hi there 👋, I am Anil Verma, a full stack web developer, and JavaScript enthusiast. 👥 Ask me anything about web development. web- https://anilvermaspeaks.in/