How to change value from one Select to another?
<p>I have two Selects with several options in html code:</p>

<pre><code>&lt;select name="t" id="t"&gt;
&lt;option value="0"&gt;Overall&lt;/option&gt;
&lt;option value="1"&gt;t_name&lt;/option&gt;&lt;/select&gt;

&lt;select name="m" id="m"&gt;
&lt;option value="0"&gt;back to Overall&lt;/option&gt;
&lt;option value="1"&gt;m_some&lt;/option&gt;&lt;/select&gt;
</code></pre>

<p>And my question is how to force change value from first Select named "t" to "0" (Overall) only in the case when user chosen value "0" (back to Overall) in second Select named "m"? And submit form at the end. </p>

<p>--EDIT--</p>

<p>Now because of advices I tried do that in this way:</p>

<pre><code>&lt;script&gt;
$(function(){
  $('#m, #t').change(function(){
    if($('#m').val() == '0')
      $('#t').val('0').change();
      $('form#myform').submit();   
  });
});
&lt;/script&gt;
</code></pre>

<p>And this script submits the form everytime when I change Select "m" or "t", except situation when I change Select "m" to value "0" (script only changes "t" to "0" in correct way without submit). Why?</p>
