I have a simple input element that is created dynamically using
javascript as follows:
myINPUT = document.createElement("INPUT");
myINPUT.type="text";
myINPUT.id = myINPUT.name = "amt"
myINPUT.value = "0";
myINPUT.className = "textNumber";
myINPUT.maxLength = "8";
myINPUT.size = "8";
myTD.appendChild(myINPUT);
After this gets added I'd like it to get the focus.
I use:
document.myform.elements["amt"].focus();
The message I get is that the field is null or does not exist.
Is this not getting inserted into the IE forms collection properly?
Is there a workaround to getting this newly created input element the
focus?
Mike