 <p>Use the id of the select and jquery to populate an array. Like the following</p> <pre><code>var arr=new Array(); $("#dropdwonid option").each(function() { arr.push($(this).text()); }); </code></pre>