J
Jeremy
In client-side JavaScript, how does one retrieve into a variable the
currently displayed text in a DropDownList control.
I tried this, but it gets the current ID/value- not the displayed text:
var curText = document.all("DDLSomeList").value
This doesn't work either (although SelectedItem.Text works in code-behind):
var curText = document.all("DDLSomeList").SelectedItem.Text;
Thanks!
currently displayed text in a DropDownList control.
I tried this, but it gets the current ID/value- not the displayed text:
var curText = document.all("DDLSomeList").value
This doesn't work either (although SelectedItem.Text works in code-behind):
var curText = document.all("DDLSomeList").SelectedItem.Text;
Thanks!