Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-04-2011, 02:16 AM #1
- Join Date
- Sep 2011
- Thanked 0 Times in 0 Posts
Getting the text/label value of a drop down box
I need your help.
I am using the code below to attempt to get the text or label value of the drop down box, however, what I am not liking is that it is returning a number of the selected item, as opposed to the text value.
Much thanks and appreciation for all your help.
10-04-2011, 02:49 AM #2
Code:sel=document.getElementById('status'); txt=sel.options[sel.selectedIndex].text; alert(txt)