How to reset select box using jquery
<p>i have two select boxes in html .I need to reset one select box when i select other</p>

<pre><code>&lt;select id="name" &gt;
    &lt;option value=""&gt;select all&lt;/option&gt;
    &lt;option value="1"&gt;Text 1&lt;/option&gt;
    &lt;option value="2"&gt;Text 2&lt;/option&gt;
    &lt;option value="3"&gt;Text 3&lt;/option&gt;
&lt;/select&gt;


&lt;select id="name2" &gt;
    &lt;option value=""&gt;select all&lt;/option&gt;
    &lt;option value="1"&gt;Text 1&lt;/option&gt;
    &lt;option value="2"&gt;Text 2&lt;/option&gt;
    &lt;option value="3"&gt;Text 3&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>When i select an option of the first id ie name i need to reset the second options to all and viceversa.
How can i do that</p>
