Similar to val() but for the selected text in a select multiple?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1643227/jquery-get-selected-text-from-dropdownlist">jQuery get selected text from dropdownlist</a>  </p>
</blockquote>



<pre><code>&lt;select id="id_deals" name="deals" multiple="multiple"&gt;
  &lt;option value="1"&gt;deal 2&lt;/option&gt;
  &lt;option value="2"&gt;deal 1&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>With jquery I can get the value of the selected items like this:</p>

<pre><code>var selected = $(e.target).val();

&gt;&gt; 2
</code></pre>

<p>But surprisingly when I try to get the actual selected text (e.g. deal 1), it gives me both entries:</p>

<pre><code>var selected_text = $(e.target).text();

&gt;&gt; "\ndeal 2\ndeal 1\n"
</code></pre>

<p>Why is that and how could I get the text of the selected entries as well?</p>
