Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Javascript getElementById

Javascript getElementById

Scheduled Pinned Locked Moved Web Development
helpjavascript
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Spiros
    wrote on last edited by
    #1

    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!!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups