Hai,
U mentioned that ur dynamically generating.
So give the radio button names like
Chk1
Chk2
In the hidden filed put how many radio buttons u have generated.
Then using eval function u can find whether it is checked or not.
Regards
Udhaya
>===== Original Message From "javascript" <javascript@p...> =====
>Hi All,
>I have a form with radio buttons and submit button. I want to validate the
>radio buttons.if there is a single radio button, how do I validate it for
>checked/unchecked?.all the radio buttons will be generated dynamically.so
>when I check the length(when there is a single radio button) it is showing
>"undefined". How do i get the length of the radio button ,if there is only
>one radio button.
>
>Any ideas on this??
>
>
>TIA.
>
>
>Thanks and Regards,
>S.Ramkumar
>
>