I have three input boxes for entering a telephone number on a webpage:
XXX XXX XXXX
I need JavaScript that moves the user between the boxes as you type. After the third character, it moves you to the second box, etc...
In the past, I've had trouble with the backspace. When I clicked backspace from the second box, it puts me in the first, but then shoots me back to the second.
What is the best way to do this?