Hey, how can i get the length of a radion group?
Assume i have these buttons:
<input type="radio" name"a">
<input type="radio" name"a">
<input type="radio" name"a">
<input type="radio" name"a">
And i want to get the length, the number of radios in this radio group, i would do:
window.document.myform.myradio.length
But if i was to access it this way:
window.document.myform.elements[0].length
it will return Undefined.
Suggestions?
Thanks.
Assume i have these buttons:
<input type="radio" name"a">
<input type="radio" name"a">
<input type="radio" name"a">
<input type="radio" name"a">
And i want to get the length, the number of radios in this radio group, i would do:
window.document.myform.myradio.length
But if i was to access it this way:
window.document.myform.elements[0].length
it will return Undefined.
Suggestions?
Thanks.