Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correct Syntax?

Status
Not open for further replies.

DigitalBoy

Programmer
Oct 11, 2000
87
US
In reference to the selected state of a radio button, is the following syntax correct:

document.ratingsForm.ratingsGroup.selected == false;

Thanks,

- DB

dgtlby@excite.com
Administrator

UBB Developers Network

 
I think there is some confusion - see when a form is submitted, the value of the one checked is collected, but in order to get it yourself, you need to use array notation on the group.

'Checked' is a property of a single radio button, not the group - you will need to loop thru them - asking each one of they are checked.

There appears to be no 'selected' property.
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top