JQuery to access Multi-Select Drop down menu
<p>I am working on a multi-select drop-down menu mentioned below</p>

<pre><code>&lt;select class="form-input name="hideLineItemColumns_quote" multiple="true" "&gt;
    &lt;option selected="true" value="part_desc"&gt;Description&lt;/option&gt;
    &lt;option selected="true" value="part_number"&gt;Product&lt;/option&gt;
    &lt;option selected="true" value="costEa_line"&gt;Cost&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I want to access values &amp; text of all selected options and use them in further logic. I tried doing this</p>

<pre><code>var tempVar = jQuery("Select[@name='hideLineItemColumns_quote'] option:selected").text();
alert(tempVar[0]);
</code></pre>

<p>Instead of showing "Description", it shows "D". It combines all three values in one long string. Any ideas what I am doing wrong?</p>

<p>Thanks,
Nitesh</p>
