Hi there!
I'm trying to write a simple JavaScript that will move the cursor to the next TextBox after 5 characters (or numbers) have been entered. I'm attempting to get this working in all browsers and realize that I'll likely have to write more than one script depending on which the user is using.
Anyways, everything I've tried...I've only come up with something that "sort of" works in IE (only).
The cursor will be moved to the next TextBox when the count reaches 5 but the 5th character is not printed because it's being replaced by the tab event (keyCode=9).
This will not work for FireFox, nor Opera. I've changed "keyCode" to be "charCode".... Alas, it will not tab to the next TextBox...it just prints a space instead.
So, after attempting this solution I tried to use the focus() method instead.
I have no idea why, but this won't work in any browser.
Does anyone have a suggestions on how to go about solving this problem?
I'm pretty stuck.
Thanks :)
-Frinny