How to give an Alert when a checkbox is checked tell the user to select the corresponding Dropdown using Jquery?
<p>Hi all i have some checkboxes and each checkbox has dropdown corresponding to it..what i want to do is  </p>

<pre><code>    **when a user checks a checkbox without selecting the dropdown i have to give an alert saying select any value..
    **when a user selects value from the dropdown make the corresponding checkbox checked
    **and if the user unchecks the checkbox set the dropdown value to default 
</code></pre>

<p>my html for this looks like this</p>

<pre><code>      @foreach(var item in Model.Resources)
       {
       &lt;div class="select"&gt;
          &lt;label class="label"&gt;
            &lt;input type="checkbox" value="@item.Text" id="@item.value"/&gt;
          &lt;/label&gt;
         &lt;div&gt;
             &lt;select id="quantity"&gt;
                &lt;option value=""&gt;--select Quantity--&lt;/option&gt;
                &lt;option value="1"&gt;1&lt;/option&gt;
                &lt;option value="2"&gt;2&lt;/option&gt;
                &lt;option value="3"&gt;3&lt;/option&gt;

            &lt;/select&gt;
        &lt;/div&gt;
       &lt;/div&gt;  
       }
</code></pre>

<p>can any one help me in doin this pleasee</p>
