overDeveloper
Programmer
I want to have focus shifted from the one that has focus to another once a certain amount of characters has been entered. I have tried:
But I get an error saying that document.GetElementById.field1 is null or not an object.. any help?
Code:
<input .... onkeyup="if (document.GetElementById['field1'].length == 3) {document.GetElementById['field2'].focus();}"
But I get an error saying that document.GetElementById.field1 is null or not an object.. any help?