Look at the image:
I want design something like in the image, where a 4 digit one time password (OTP) is to be entered by user. Right now I have achieved th
I would just keep this 4 separate fields approach, and add the same event handler to all of them, which will:
You can even write a little separate JS for that, and re-use it.