javascript tutorial - [Solved-5 Solutions] Get selected text from a drop down list - javascript - java script - javascript array
Problem:
How can we get a drop-down list selected text in jQuery, not using the selected value?
Solution 1:
Solution 2:
Try this:
For an ASP.NET dropdown we can use the following selector:
Solution 3:
The answers posted here, for example,
didn't work for me, but this did:
It is possibly an older version of jQuery.
Solution 4:
If we already have the dropdownlist available in a variable, this is what works for me:
The other answers on this question helped me, but ultimately the jQuery forum thread $(this + "option:selected").attr("rel") option selected is not working in IE