Get selected text from a drop-down list (select box) using jQuery

Asked 13 years ago
Viewed 2.19 k times

How can I get the selected text (not the selected value) from a drop-down list in jQuery?

asked 13 years ago

Correct Answer

$("#yourdropdownid option:selected").text();
answered 2 years ago

Other Answer

Try this:

$("#myselect :selected").text();

For an ASP.NET dropdown you can use the following selector:

$("[id*='MyDropDownId'] :selected")
answered 13 years ago