I have a select element that allows for multiple selections. I\'d like to display the selected values in another part of the page (in a div or something) as the user makes chang
.val() on a multiple select returns an array.
See the snippet below as an example:
$(function() { $('#fruits').change(function(e) { var selected = $(e.target).val(); console.dir(selected); }); });
Apple Banana Mango Grape watermelon