getRadioButtonValue question

T

the4thmooncat

I have been trying to modify an old function for a program I am using,
but I keep getting hung up on this:

if (radio[0].checked)
{
whatIs = true;
alert("attempting to return a true value");
}

The problem I get, using the debugger w/ firefox, is

Error ``TypeError: radio[0] has no properties''

What does this mean?

radio is this:

thaform.elements["a"];

where the form is 'thaform' and the radio buttons are named a.
 
R

Randy Webb

(e-mail address removed) said the following on 6/13/2006 3:45 PM:
I have been trying to modify an old function for a program I am using,
but I keep getting hung up on this:

if (radio[0].checked)
{
whatIs = true;
alert("attempting to return a true value");
}

The problem I get, using the debugger w/ firefox, is

Error ``TypeError: radio[0] has no properties''

What does this mean?

radio is this:

thaform.elements["a"];

where the form is 'thaform' and the radio buttons are named a.

<URL: http://www.jibbering.com/faq/faq_notes/form_access.html#faBut>

Radio Buttons are in a class of there own when trying to access them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top