Loop through string of dropdown options and select
<p>I want to select an option in a string, where the string will be the contents of a dropdown, but I dont know how to loop through the string as an object please.
In the example I would like "Saab" to be selected and the string alerted.</p>

<pre><code>var x = '&lt;select&gt;&lt;option&gt;Volvo&lt;/option&gt;   &lt;option&gt;Saab&lt;/option&gt;   &lt;option&gt;Mercedes&lt;/option&gt;   &lt;option&gt;Audi&lt;/option&gt; &lt;/select&gt;';

$.each($(x), function(index, value) { 
    if ($(this).val() == "Saab"){
        $(this).attr("selected","selected")
    }
});
alert(x);
</code></pre>
