Jim Michaels wrote:
Quote:
I need to set the value of an <input> tag. how do I do it
cross-browser? FF won't let me. and it sits there with documented
functions like setAttribute() and getElementById()
and all it does is spit out error messages.
document.getElementById(tagName).setAttribute('val ue', val);
I can, however, do this for reading a value:
document.getElementById(tagName).value;
*sometimes*. sometimes it works for reading a value, and sometimes it
doesn't - like when I am using it in certain functions.
FF seems flaky to me. I don't know what's going on. I need help. |
never mind. found the problem. id of the element wasn't defined. only
the name was. works in IE. interesting?
however, I fif find out that getAttribute() doesn't work in FF.
setAttribute() does.
--
------------------------------------
Jim Michaels
for email, edit the address
RAM Disk is *not* an installation method.