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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radiobuttons vs selectedIndex

Status
Not open for further replies.

kehers

Programmer
Aug 31, 2005
56
A2
CAn one access radiobutton index as one does with select option index...as in something like
Code:
document.formname.radiobutton.selectedIndex
?
 
To save you, the oooh... seconds of time that it would take to build a quick test harness, yourself, the answer is no. You have to loop around the collection and determine which one is checked yourself.

Hope this helps,
Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks for the reply. Can u help with a simple snippet to go thru the loop? :)
 
The search facility for tek-tips works quite well. As does google. You will find your answers there. This is a common question.

When you have a particular problem with your code and can't progress without help... then this is the place to ask (but only when you have done some of the research and made a start yourself).

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top