JQuery retrieving text with val instead of value
<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 lokk at myOption I get the text of 'one' or 'two'?</p>
