Possible Duplicate:
jQuery get selected text from dropdownlist
<select id="id_deals" name="deals" multiple="multiple">
<option value="1">deal 2</option>
<option value="2">deal 1</option>
</select>
With jquery I can get the value of the selected items like this:
var selected = $(e.target).val();
>> 2
But surprisingly when I try to get the actual selected text (e.g. deal 1), it gives me both entries:
var selected_text = $(e.target).text();
>> "\ndeal 2\ndeal 1\n"
Why is that and how could I get the text of the selected entries as well?