title: JQuery retrieving text instead of value of select list
body: <p>I need to get the value from a select list but JQuery is returning the text within the options of the select.</p>
  
  <p>I have the following simple code.</p>
  
  <pre><code>&lt;select id="myselect"&gt;
     &lt;option selected="selected"&gt;All&lt;/option&gt;
     &lt;option value="1"&gt;One&lt;/option&gt;
     &lt;option value="2"&gt;Two&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I then use the following JQuery, which I thought would get me the value</p>
  
  <pre><code>var myOption = $('#myselect').val()
  </code></pre>
  
  <p>but when I look at <code>myOption</code> I get the text of 'One' or 'two'?</p>