I have several radio buttons with the same name. Like this:
A good start, but don't use for..in that way as it will iterate over all enumerable properties and you haven't checked to see if they all represent elements.
Much better to use an index:
for (var i=0, iLen=radios.length; i