John B
John B

Reputation: 20350

How can I get the text of the selected item from a dropdown using jQuery?

How can I get the text of the selected item from a dropdown using jQuery?

Upvotes: 1

Views: 417

Answers (1)

John B
John B

Reputation: 20350

Using the following URL, I came up with this solution:

http://www.mail-archive.com/[email protected]/msg17717.html

$("#myDropdown option:selected").text()

Not sure if this is the best solution, but it seems to work great.

Upvotes: 4

Related Questions