Hello,

I'm doing a wee bit a client side for validation.

I want to check that a radio button has been checked, I step through the
element array and reference the radio buttons with:

theForm.elements[i]..... 

theForm is a var pointing to my form in this case document.forms.ClaimForm

I have several radio buttons all with the same name, when I try to count
them, in the loop it doesn't work but using the element name is does work
eg:

theForm.elements["WorkStatus"].length - works

but

theForm.elements[i].length - doesn't work

I know that i is pointing to the right element as I can grab the name
and/or the checked status eg

theForm.elements["WorkStatus"].name

does any have any ideas 

thanks
Paul


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to