jQuery - setting the selected value of a select control via its text description
<p>I have a select control, and in a javascript variable I have a text string.</p>

<p>Using jQuery I want to set the selected element of the select control to be the item with the text description I have (as opposed to the value, which I don't have).</p>

<p>I know setting it by value is pretty trivial. e.g.</p>

<pre><code>$("#my-select").val(myVal);
</code></pre>

<p>But I'm a bit stumped on doing it via the text description. I guess there must be a way of getting the value out from the text description, but my brain is too Friday afternoon-ed to be able to work it out.</p>

<p>Any ideas SO people?</p>
