SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: drop down text
-
Feb 12, 2002, 10:37 #1
- Join Date
- May 2001
- Location
- Northern Virginia
- Posts
- 445
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
drop down text
I've seen this code:
this.options[this.selectedIndex].value
to get the value of a chosen entry in a drop down box. How do I get the "display text", the text that was in the drop down box?
-
Feb 12, 2002, 10:45 #2
If memory serves me right its: this.options[this.selectedIndex].text
-
Feb 12, 2002, 11:15 #3
- Join Date
- May 2001
- Location
- Northern Virginia
- Posts
- 445
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks, thats what I needed!
Bookmarks