Getting all options in a select element

ReleSpeance

New Member
I have a select element where a user can add and remove options. When the user is done they will then click save but I cannot figure out how to then get all the options from the select. I have found JQuery to get all the selected but I just need all of them. I tried this:\[code\]var str = ""; $("#wordList").each(function () { str += $(this).text() + ","; }); alert(str);\[/code\]But it just concatenates all the option to one long string that ends in a comma.Thank you.
 
Top