Javascript getElementById
-
Hi everybody I have a page with an asp repeater that consists of a list of radio buttons. I am using javascript in order to find the radio button that was checked. Everything works fine in IE but when I try it in NN 7.1 the following piece of code will produce an error. if (browser == "N") OnShipOptionChange(RadioButton_GetSelectedNN(window.document.getElementById("<%=m_methodid.UniqueID%>"))); <--this called else OnShipOptionChange(RadioButton_GetSelected(window.document.getElementById("<%=m_methodid.UniqueID%>"))); function RadioButton_GetSelectedNN(obj) <--the function called by the code above. { for(var idx = 0, max = obj.attributes.length; idx < max; idx++) { if(obj[idx].checked == true) <-- line that gives the error return obj[idx]; } return null; } The Error Message is: "obj[idx] has no properties". I have tried everything and I cannot make it to work. Any help will be highly appreciated. Thank you very much for your time Spiros Prantalos Miami the place to be!!