Getting select option text based on value
<p>I have a menu.  Given a given value, I would like to return the text.  For instance, 0 would return “zero”, 1 would return “one”, etc.  Note that I do not care which option is currently selected nor do I want to auto-select the menu, but just want to use the select menu as a primitive database.  Can this be done easily with JavaScript or jQuery without iterating over each option?  </p>

<pre><code>&lt;select&gt;
&lt;option value="0"&gt;zero&lt;/option&gt;
&lt;option value="1"&gt;one&lt;/option&gt;
&lt;option value="2"&gt;two&lt;/option&gt;
&lt;option value="3"&gt;three&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>Thanks</p>
