Get option's value by text
<p>I have the following:</p>

<pre><code>&lt;select name="dayRange" class="styled"&gt;
  &lt;option value="0"&gt;All day&lt;/option&gt;
  &lt;option value="1"&gt;Morning and day (8:00 - 18:00)&lt;/option&gt;
  &lt;option value="2"&gt;Evening(18:00 - 6:00)&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>How can I get <code>value</code> for specific text?<br>
For example: return <code>value</code> for <code>All Day</code>.
Thanks.</p>
