// Get all selected options from multiple select
alert ( $("#id option:selected").text() );

// Get selected options using loop, append selected values and display in a div or element
$('#area :selected').each(function(i, selected){
foo[i] = $(selected).text();
$("#added_area").append(' '+foo[i]);
});

// Add or Push values in array 
var foo = [];
var areas = [];
$('#area :selected').each(function(i, selected){
foo[i] = $(selected).text();
areas.push(foo[i]);
});
alert(areas);

Advertisements