option selector based on text
<p>Everywhere on SO there is only selector via <code>value</code>, but I want to select <code>option</code> based on it text.</p>

<p>For example, I have this:</p>

<pre><code>&lt;select id="some-id"&gt;
    &lt;option&gt;1&lt;/option&gt;
    &lt;option&gt;2&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>How get option with text equal to "2"? Something like this:</p>

<pre><code>jQuery("#some-id option[text='2']")
</code></pre>

<p>But it is not working for me, how it should be done?</p>
