title: How to select multiple value from a listbox
body: <p>I have a below code where if I select one value, it works fine, but now I need such that when I select multiple values from the listbox, i have to get the value of selected values. How do i go about it?
  Here is the code,</p>
  
  <p>HTML Code:</p>
  
  <pre><code>&lt;select id="attributeNames" name="attributeNames" size="5" multiple="multiple"         
  onchange="getUniqueValues(value)"&gt;
  &lt;option value="Apple"&gt; Apple &lt;/option&gt;
  &lt;option value="Mango"&gt; Mango &lt;/option&gt;
  &lt;option value="Orange"&gt; Orange &lt;/option&gt;
  &lt;option value="Banana"&gt; Banana &lt;/option&gt;                                            
  &lt;/select&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>function getUniqueValues(value){
  alert(value);
  }
  </code></pre>
  
  <p>For instance:
      If I select Apple, then I get alert saying apple, now if I select apple &amp; mango, I have to get the alert having apple &amp; mango values. Facing problem here.</p>
  
  <p>Here is the code: <a href="http://jsfiddle.net/5VtE3/2/" rel="nofollow">http://jsfiddle.net/5VtE3/2/</a> </p>
  
  <p>Thanks in advance,</p>