jQuery Undefined error when trying to get only <option> element
<p>I have html with a <code>&lt;select&gt;</code> tag and <code>&lt;option&gt;</code> tags. I get a certain option / value in this way:</p>

<pre><code>$(targetElement).children("option[text=" + Text + "]").val();
</code></pre>

<p>where <code>targetElement</code> is my <code>&lt;select&gt;</code> element and <code>Text</code> is the text of the option I want to find.</p>

<p>This works fine when there are multiple options in the <code>select</code> (<a href="http://jsfiddle.net/dbQ7m/1/" rel="nofollow">on jsFiddle</a>), but when there is only one option, I get <code>undefined</code> (<a href="http://jsfiddle.net/aBWE5/" rel="nofollow">on jsFiddle</a>)!</p>

<p>Can anyone tell me why it doesn't work when there is only one option, and how I can fix it? </p>
