html:select in firefox

2008-09-18 Thread Jeffrey Born
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

Re: html:select in firefox

2008-09-18 Thread Jeffrey Born
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