0 votes
1 view
in Web Technology by (47.8k points)

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

1 Answer

0 votes
by (107k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...