tags:

views:

60

answers:

1

I have a Select Box with multiple="multiple"

I want to list the text and not values of all selected items

How can i do it?

+2  A: 

This should do the work...

var foo = [];
$('#multiple :selected').each(function(i, selected){
   foo[i] = $(selected).text();
});
Emrah GOZCU
it works..replaced $(selected) with $(this)
Satya
@Satya: Glad if it helped you. it should work with selected though.
Emrah GOZCU