This post will discuss how to get selected text from a dropdown list in JavaScript and jQuery.

1. Using jQuery

With jQuery, you can use the text() or html() method to get the selected text from a dropdown. This can be done in several ways using the :selected property to get the chosen option of the select element, as shown below:

 
Here’s a live example:

JS


HTML



Edit in JSFiddle

2. Using JavaScript

In plain JavaScript, you can do like:

JS


HTML



Edit in JSFiddle

That’s all about getting selected text from a drop-down list in JavaScript and jQuery.