Why isn't drop down changing based on other value?
<p>I'm not sure why this isn't working.  Anyone care to take a stab?</p>

<p>I have a form with the below.  When the user selects the "disabled" option in #frmcomments, I'd like #frmstatus to change to the option value of private.  </p>

<pre><code>&lt;label for="type"&gt;Comments:&lt;/label&gt;
&lt;select class="sort-select" id="frmcomments" name="frmcomments"&gt;
    &lt;option value="enabled"&gt;Allow Comments&lt;/option&gt;
    &lt;option value="disabled"&gt;No Comments&lt;/option&gt;
&lt;/select&gt;



&lt;label for="type"&gt;Status:&lt;/label&gt;
&lt;select class="sort-select" id="frmstatus" name="frmstatus"&gt;
    &lt;option value="public"&gt;Anyone can see&lt;/option&gt;
    &lt;option value="private"&gt;Only I can see&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I'm using the following jquery, but it's failing?</p>

<pre><code>$('#frmcomments').change(function() {
    var thistype = $(this).find(":selected").val();

    if(thistype=="disabled") {
        $("#frmstatus").val("private");
    }

    return false; 
});
</code></pre>
