Nevermind, this got it: document.form1.ITEM_ID.options[document.form1.ITEM_ID.selectedIndex].text
> -----Original Message----- > From: "Owens>,Howard" <[EMAIL PROTECTED] [SMTP:"Owens>,Howard" > <[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 4:45 PM > To: CF-Talk > Subject: OT: Javascript to grab option text > > I'm trying to figure out how to grab the text string of an option > selection > ... > > <select name="ITEM_ID"> > <option value=1>Grab Text</option> > </select> > > I've been trying stuff like this: > > (document.form1.ITEM_ID.selectedIndex.text); > > or .value or .selected ... > > And I keep getting "undefined" > > How do I, is there a way to read the text selected, because it is the > text, > not the ID value that I need to do my conditional test on. > > H. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

