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
Reasons to define UDT..
Incremental search listbox w/ SQL Server w/ ability to append records to the serached table
Batch script to calculate elapsed time in seconds : must be able to handle if time crosses midnight
SQL Server find sequnce of same values
'SettingsSingleFileGenerat
or' 'ResXFileCodeGenerator' problem
Using 3rd Party SSL to Setup Exhange 2007, Outlook 2007, Server 2003 with Terminal Services
Javascript problem
mozilla keeps session even if close it
How do I configure OWA internal/external URL's?
auto run lightbox