Move focus to previous element

I am building UI for mobile OTP input screen.
image

When user clears input on 4th box, I want the cursor to be positioned on 3rd box. I have tried with ‘set focus to an element’ and javascript focus() and select() methods. But both seem to not be working.

Is there any way to achieve this?

Thanks,
Ram

Hey Guys,

Any inputs on this?

This topic was automatically closed after 70 days. New replies are no longer allowed.