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
iSCSI target status dead - ESXi 4
Having issues converting Physical ISA server to Virtual Server
which one is best ?
"Cannot copy <file name>. The parameter is incorrect"
The Microsoft Firewall service terminated with service-specific error 126 (0x7E).
Ho Do you Create a timeline Planner/diary in vb.net
Server Security
fortigate 60b, add second subnet needs internet - easy
Apache authentication using the GET method. Is it possible?
Viewing Embedded Image in MS Access Report