Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

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

1 Answer

0 votes
by (106k points)

To get the selected text from a drop-down list in jQuery you can use the below mentioned piece of code:-

$("#yourdropdownid option:selected").text();

Related questions

Browse Categories

...