How do I gather dropdown values into array with jQuery?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/590163/how-to-get-all-options-of-a-select-using-jquery">How to get all options of a select using Jquery?</a>  </p>
</blockquote>



<p>I have the following code I need to gather all the possible options into a 2D array detailing the value and the text shown.</p>

<pre><code>&lt;div class="input-box"&gt;

    &lt;select name="options[4]" id="select_4"&gt;
        &lt;option value=""&gt;-- Please Select --&lt;/option&gt;
        &lt;option value="24"&gt;Not Sure - Send Me Some Samples First &lt;/option&gt;
        &lt;option value="13"&gt;1 Jet Black &lt;/option&gt;
        &lt;option value="14"&gt;Blondette 4/27 &lt;/option&gt;
        &lt;option value="15"&gt;Boho Blonde 613/12 &lt;/option&gt;
        &lt;option value="16"&gt;Caramel 6 &lt;/option&gt;
        &lt;option value="17"&gt;Cherry 530 &lt;/option&gt;
        &lt;option value="18"&gt;Dirty Blonde 612/12 &lt;/option&gt;
        &lt;option value="19"&gt;Ebony Black 1b &lt;/option&gt;
        &lt;option value="20"&gt;Hot Toffee 4 &lt;/option&gt;
        &lt;option value="21"&gt;LA Blond 24/613 &lt;/option&gt;
        &lt;option value="22"&gt;Malibu Blonde 60/613 &lt;/option&gt;
        &lt;option value="23"&gt;Raven 2 &lt;/option&gt;
    &lt;/select&gt;

&lt;/div&gt;
</code></pre>

<p>I am really not sure how to do this, I would normally give my attempt so far but I know its less than useful.</p>

<pre><code>myarray = $('.input-box').eq(0).val();
</code></pre>
