Today i am developing a client management system where i fall a problem, i am not able to get the current select list values. I search on google but visiting many site i am not get good solution. At last i got the solution in one blog . So that i think to share this problem solution with you. This problem is search by many people in google by “How do you get the current value from a select list?”
To get the current value is very simple using val().
$('#selectList').val();
View Demo:
$('#selectList :selected').text()
I will create the demo and code below. This would be how to set a select multiple to an array called, “foo”.
var foo = [];
$('#multiple :selected').each(function(i, selected){
foo[i] = $(selected).text();
});


