title: <select> tag and returning multiple values to javascript method
body: <p>I have an issue with the data which is sent from a drop down menu,  the selector only returns a single value, even when multiple values are selected.  I have searched online for a solution to this, but they all use PHP, JQuery or some method outside the scope of the course I am taking; to capture multiple selected items.  I have tried .value of the individual options,  but that returns all of the options rather than just the ones which are selected.  Is there some kind of trick to sending multiple values? </p>
  
  <p>Here is my code for the menu.   For example If I select JAVA PROGRAMMING, NETWORKS and VIDEO GAMES,   only JAVA PROGRAMMING is sent. </p>
  
  <pre><code>&lt;select multiple id="CK_Expertise"&gt;
    &lt;option id="CK_Exp1" value="Java programming"&gt;JAVA PROGRAMMING&lt;/option&gt;
    &lt;option  id="CK_Exp2" value="Networks"&gt;NETWORKS&lt;/option&gt;
    &lt;option  id="CK_Exp3" value="Video game programming"&gt;VIDEO GAMES&lt;/option&gt;
    &lt;option  id="CK_Exp4" value="Accounter"&gt;ACCOUNTER&lt;/option&gt;
    &lt;option  id="CK_Exp5"  value="Help Desk"&gt;HELPDESK&lt;/option&gt;
    &lt;option  id="CK_Exp6"  value="C++ programming"&gt;C++&lt;/option&gt;
    &lt;option  id="CK_Exp7"  value="Programming"&gt;PROGRAMMING&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I have also tried using the Select Object in the DOM,  <a href="http://www.w3schools.com/jsref/dom_obj_select.asp" rel="nofollow">http://www.w3schools.com/jsref/dom_obj_select.asp</a>
  which has a few methods for accessing the options in the dropdown menu.  One method in particular called selectedIndex,  seemed to be what I am looking for,  however it only returns the the index of the first selected option, instead of all of the selected options.<br>
  Is there a simple solution to this using just Javascript and the DOM?</p>
  
  <p>Thanks
  - Chris</p>