I'm trying to use a JavaScript function getElementById to access the
selectedIndex property of an HTML select tag that is generated via a
struts html:select tag. The JavaScript function is failing because
the Id attribute is missing. IE works with the name attribute which
is generated.
I'm using
The styleId attribute did the trick. To quote the great homer simpson: "doh!"
When it was not there, firefox responded exactly like it should. The
method is getElementById not getElementByName. getElementByName works
just fine under IE however since under IE it uses the name attribute.
Thanks
2 matches
Mail list logo