Best Practice: Accessing radio button group
        Posted  
        
            by seth
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by seth
        
        
        
        Published on 2010-03-13T03:44:23Z
        Indexed on 
            2010/03/13
            3:47 UTC
        
        
        Read the original article
        Hit count: 277
        
Looking for the best, standards compliant, cross browser compatible, forwards compatible way to access a group of radio buttons in the DOM (this is closely related to my other most recent post...), without the use of any external libraries.
<input type="radio" value="1" name="myRadios" />One<br />
<input type="radio" value="2" name="myRadios" />Two<br />
I've read conflicting information on getElementsByName(), which seems like the proper way to do this, but I'm unclear if this is a standards compliant, forwards compatible solution. Perhaps there is a better way?
© Stack Overflow or respective owner