Tech Off Post

Single Post Permalink

View Thread: getting .value from javascript nodecollection?
  • User profile image
    zproxy

    The problem is you are using name attribute but you should use distinct id attributes to reference them via getElementById().

    Example:

    <input type="radio" id=''cars0" name="cars[0]" value="vw" />
    <input type="radio" id="cars0" name="cars[1]" value="dodge" />

    just my 2 cents