How can I get the selected text (not the selected value) from a drop-down list in jQuery?
How can I get the selected text (not the selected value) from a drop-down list in jQuery?
$("#yourdropdownid option:selected").text();
Try this:
$("#myselect :selected").text();
For an ASP.NET dropdown you can use the following selector:
$("[id*='MyDropDownId'] :selected")
Questions
Answers
Tags
Users
Copyright © 2022