This question is locked. New answers and comments are not allowed.
I need to get the value of the last dropdown item. How can I achieve this?
I managed to get the items in my OnOpen client event:
After that I know I can reference the last item and change the class like
But how can I get the items text or value?
What are the elements called that the actual values are stored into?
Thanks in advance!
I managed to get the items in my OnOpen client event:
var
items = $(
this
).data(
"tDropDownList"
).dropDown.$items;
After that I know I can reference the last item and change the class like
items[items.length-1].className +=
" myClass"
;
But how can I get the items text or value?
What are the elements called that the actual values are stored into?
Thanks in advance!