Eric Pascarello wrote:if you use jQuery, you can use :selected
Bear Bibeault wrote:Please don't show JSP markup in the HTML forum. Rather, post the HTML generated from the JSP.
Check your script. Is it really inspecting the correct elements?
Tim McGuire wrote:the for statement is not getting elements.length
Bear Bibeault wrote:Have you run the script in Firefox with Firebug enabled?
Some basic debugging will show that your script fails immediately.
Bear Bibeault wrote:Beyond that, your script has some major problems. Are you only testing in IE?
Bear Bibeault wrote:Answer this question: how can you use getElementById() to find elements that have no id?!
Bear Bibeault wrote:The problem is that IE has these weird ideas of how things should work that doesn't match the standards that all other browsers use.
This is one case: getElementById() will match an element by its name. That's non-standard behavior and will not work in any other browser. Name and id are distinct and separate concepts.
Shiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|