How to select option in jQuery using text of option tag
<p>I'm trying to select a certain option in a select box, but it's not working:</p>

<pre><code>var category = $(row + 'td:nth-child(4)').text();
$('#category_id', theCloned).load('/webadmin/video/get_categories',function(){
   $('#category_id', theCloned).val(category);
});
</code></pre>

<p>There's no error thrown, but it doesn't change the select box.  What am I doing wrong here?</p>

<p>Here is an example of the options loaded by the load() call:</p>

<pre><code>&lt;option value="1"&gt;Capabilities&lt;/option&gt;
&lt;option value="2"&gt;Application Focus&lt;/option&gt;
&lt;option value="5"&gt;Fun&lt;/option&gt;
</code></pre>

<p>The value of the category variable is "Fun" or "Capabilities", etc.</p>
