Microsoft
Software
Hardware
Network
Question : getting text from a listbox in javascripts
Hi, I want to get the text rather than the value of a listbox. If I wanted to get the value, I would use this
var dropdown_value=document.ge
tElementBy
Id("my_dro
pdown").va
lue;
however I want to get the text, how could I do this?
Thanks.
Answer : getting text from a listbox in javascripts
var dropDown = document.getElementById("m
y_dropdown
")
var dropdown_value=dropDown.op
tions[drop
Down.selec
tedIndex].
text;
or
var dropdown_value=dropDown.op
tions[drop
Down.selec
tedIndex].
innerHTML;
Random Solutions
How to configure HSRP load balance
How can I display previous month's records in January?
Novell migration
How to get past login page strRequestHTML Post
How to print an entire help file or save as / convert help file to pdf?
Unable to Save files in my C drive
Out of Office Assistant not working w/Forwarding Configured
A Perl Date module problem
DAG & CAS array configured but it's not failover
How to find the row count in an Oracle DataReader in ASP.NET?