Can someone explain to me why I get this error when i have one radio button in the array with a length size of one and i = 0?
]document.radioForm.Radio[i] is undefined
Line 25
Here's the code
ln = document.radioForm.Radio.length
if(isNaN(ln)){
ln = 1
}
alert(ln)
for(i=0; i<ln; i++){
alert(i)
if(document.radioForm.Radio[i].checked){
status = true;
}
}
Error occurs at document.radioForm.Radio[0].
Thanks