title: How to get all selected values from <select multiple=multiple>?
body: <p>Seemed odd I couldn't find this one already asked, but here it goes!</p>
  
  <p>I have an html  as follows:</p>
  
  <pre><code>&lt;select id="select-meal-type" multiple="multiple"&gt;
      &lt;option value="1"&gt;Breakfast&lt;/option&gt;
      &lt;option value="2"&gt;Lunch&lt;/option&gt;
      &lt;option value="3"&gt;Dinner&lt;/option&gt;
      &lt;option value="4"&gt;Snacks&lt;/option&gt;
      &lt;option value="5"&gt;Dessert&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>How do I get all the values(an array?) that the user has selected in javascript?</p>
  
  <p>For example, if the user has selected Lunch and Snacks, I want an array of { 2, 4 }.</p>
  
  <p>This seems like it should be a very simple task but I can't seem to do it. </p>
  
  <p>Thanks.</p>