how can select the value of dropdown when check the check box group using jquery
<p>i need to try select the dropdown, when i was checked the check box value that corresponding value was selected in the  dropdown </p>

<p>For example when i checked the Test 2 ,the dropdown also chage the selected value as Test 2</p>

<p>and i need check box group code.. </p>

<pre><code>&lt;html&gt;
&lt;head&gt;&lt;title&gt;Check Box&lt;/title&gt;
&lt;script&gt;
$("#chk").click(function(){
$("#test option:selected")=$("#chk :checked").val()
});
&lt;/script&gt;
&lt;/head&gt;
&lt;form&gt;
&lt;input type="checkbox" value="1" id="chk"&gt;Test 1
&lt;input type="checkbox" value="2" id="chk"&gt;Test 2
&lt;input type="checkbox" value="3" id="chk"&gt;Test 3
&lt;select id="test"&gt;
&lt;option value="1"&gt;Test 1&lt;/option&gt;
&lt;option value="2"&gt;Test 2&lt;/option&gt;
&lt;option value="3"&gt;Test 3&lt;/option&gt;
&lt;/select&gt;
&lt;/form&gt;
&lt;/html&gt;
</code></pre>
