Selecting Option with JQuery
<p>I want to set a dropdown box to whatever has been passed through a querystring using jquery. </p>

<p>How do I add the selected attribute to an option such that the "TEXT" value is equal to a certain param from the query string?</p>

<pre><code> $(document).ready(function() {
        var cat = $.jqURL.get('category');
        if (cat != null) {
            cat = $.URLDecode(cat);
            var $dd = $('#cbCategory');
            var $options = $('option', $dd);
            $options.each(function() {
                if ($(this).text() == cat)
                    $(this).select(); // This is where my problem is
            });
        };
    });
</code></pre>
