Alok Kumar Mishra
Alok Kumar Mishra

Reputation: 169

In jquery How to get selected text in select

How can I get selected text from drop-down list using jQuery, not using the selected value?

Upvotes: 1

Views: 1062

Answers (4)

Shikhar
Shikhar

Reputation: 303

do it like this $("#selectid option:selected").text();

Upvotes: 1

Siju Thankachan
Siju Thankachan

Reputation: 11

try to use this: $("#dropdownId option:selected").text();

Demo Link

Upvotes: 1

Deepak Biswal
Deepak Biswal

Reputation: 4320

Try any of below:

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

Upvotes: 2

Richard
Richard

Reputation: 850

You could use this:

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

Upvotes: 2

Related Questions