use the selectedIndex property.

document.myform.colors.options[document.myform.colors.selectedIndex].value
document.myform.colors.options[document.myform.colors.selectedIndex].text

On 6/13/05, Jeff Waris <[EMAIL PROTECTED]> wrote:
> 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
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209351
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

Reply via email to