This post will discuss how to get all selected values of a multi-select dropdown list with jQuery.

With jQuery, you can use the .val() method to get an array of the selected values on a multi-select dropdown list.

JS


HTML



Edit in JSFiddle

 
Alternatively, you can use the jQuery.map() instead, as shown below:

JS


HTML



Edit in JSFiddle

 
If you need to process each array individually, you can use the .each() method:

JS


HTML



Edit in JSFiddle

That’s all about getting all selected values of a multi-select dropdown list with jQuery.

 
Also See:

Get selected values in a multi-select drop-down with JavaScript