I have a form where I primarily input single digit numbers. I want to auto tab to each input field, however, sometimes, there is a need for a two digit number. The two digit number will always start with “1”. So I would like to auto tab on all single digit numbers except 1 and if a 1 is entered the auto tab is disabled so that a second digit can be entered. I will manually tab to the next field where auto tab would then resume.
I can find plenty of code for auto tabbing but none with this type of exception. I am new to javascript.
Something like this should get you started. http://jsfiddle.net/eH4K7/ (tested Chrome only)
However you’ll need to do a lot more checks on the user input to get your desired effect.