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
2010-08-13 06:02:26