Oct 23, 2019 06:12 AM|Yang Shen|LINK
Problem with this is that it is not reliable because users may not enter entire maxlength.
In your code, if customer typed more than 5 characters into the first textbox, it will lose the focus and the next textbox will be focused.
It's little hard to understand "users may not enter entire maxlength.", do you mean that you want to trigger this "jump focus" event even the text length typed by customer is shorter than 5?
Is there a way to modify the code below to move focus from one input box to another without knowing the field IDs and without maxlength attribute?
This can't be done unless you tell the condition when you want to trigger the "jump focus" event, in your current code, the conditon is "when the text lenght is longer than 5", what the new condition will you want in your new code?