Please see:
http://p2p.wrox.com/javascript/faq.asp#no21
/Robert
-----Original Message-----
From: Phil Griffiths [mailto:pgtips@m...]
Sent: den 10 februari 2003 15:30
To: javascript
Subject: [javascript] Re: Finding the length of a radio button
Just do:
if (yourRadioObject.length)
{
// deal with multiple radio buttons
}
else
{
// deal with a single radio button
}
hth
Phil
>------------------------------------------
> 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