document.myform.colors.length gives you a variable that you can loop
on and find the selected item.

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.m7yform.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:209350
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to