finding option text based on value of select control
<p>I have a select control that looks like this:</p>

<pre><code>&lt;select name="MyName" id="MyID"&gt;
  &lt;option value ="1"&gt;1 day&lt;/option&gt;
  &lt;option value ="2"&gt;2 days&lt;/option&gt;
  &lt;option value ="3"&gt;3 days&lt;/option&gt;
  &lt;option value ="4"&gt;4 days&lt;/option&gt;
&lt;select&gt;
</code></pre>

<p>I'm looking to get the text of the option based on the value. For instance, if I input 2, it should return "2 days".</p>

<p>Thanks for your suggestions.</p>
