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

1. Using jQuery

With jQuery, you can use the .val() method to get the selected value from a dropdown. This can be done in several ways using the :selected property to get the selected option, 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

 
Or use

JS


HTML



Edit in JSFiddle

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