Sorry - a more complete example would be: var SelOpt = document.<form name>.<select name>.options.selectedIndex;
then document.myform.colors[SelOpt].value HTH, Howie --- On Monday, June 13, 2005 4:44 PM, Jeff Waris scribed: --- > > 4:50 Ponderings... > > How do I grab the CURRENTLY selected option in a select list WITHOUT > knowing > how many options. (the options are dynamically created) > > Say we have in select colors > > Red > Green <selected> > Blue > > Document.myform.colors[1].value would be the selected one, but how > would you > figure that out dynamically? > > Thanks.. > Jeff > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209354 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54