views:

17

answers:

1

How do I get all the options (text,not the value) of a select menu by by specifying its id

+1  A: 
var textArr = $("#mySelect").map(function() {
    return $(this).text();
}).get();
alert(textArr);

Demo here. And see http://api.jquery.com/map/

karim79