if there is more that one radio button with the same name then my code
loops through and checks all three radios.
I would have thought it should only be able to check that one that is
checked, as it does when you submit the form and do a request.form.
counting the radio buttons was intialy my first idea of how to tell the
difference between checked or unchecked for radios of the same name, but
after thinking it though a bit, and i don't know why i didn't think of it
before but all i do is set an extra flag if the radio is ticked eg:
if ((theForm.elements[i].checked == false) && (doneRadio == false))
{
error = true;
alert(theForm.elements[i].name);
}
else
{
if (theForm.elements[i].checked ==
true)
{
doneRadio = true;
}
}
thanks for all your help
ta ta
Paul
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]