How to make a dropdown enabled on change event using JQUERY?
<p>My form consists of a checkbox and a dropdown in the header and several dropdowns in the main content of my page. On page-load, I want all of the dropdowns to be disabled. Once the checkbox is checked, I want the header dropdown enabled. If the user chooses an option in the header dropdown, all of the other dropdowns should become selectable. Finally, if the checkbox in the header is clicked again, all of the dropdowns should be disabled again.</p>

<p>Here is the code I have tried:</p>

<p><strong>HTML</strong>:</p>

<pre><code>Header:
&lt;br /&gt;&lt;input type="checkbox" name="approve" /&gt;
&lt;select id="myddl" name="myddl"&gt;
    &lt;option value="1"&gt;One&lt;/option&gt;
    &lt;option value="2"&gt;Twooo&lt;/option&gt;
    &lt;option value="3"&gt;Three&lt;/option&gt;
&lt;/select&gt;
&lt;div class="detail"&gt;
    &lt;p&gt;Detail&lt;/p&gt;
        &lt;br /&gt;
    &lt;select id="Select1" name="myddl"  &gt;
        &lt;option value="1"&gt;One&lt;/option&gt;
        &lt;option value="2"&gt;Twooo&lt;/option&gt;
        &lt;option value="3"&gt;Three&lt;/option&gt;
    &lt;/select&gt;
    &lt;br /&gt;
    &lt;select id="Select2" name="myddl"  &gt;
        &lt;option value="1"&gt;One&lt;/option&gt;
        &lt;option value="2"&gt;Twooo&lt;/option&gt;
        &lt;option value="3"&gt;Three&lt;/option&gt;
    &lt;/select&gt;
    &lt;br /&gt;
    &lt;select id="Select3" name="myddl"  &gt;
        &lt;option value="1"&gt;One&lt;/option&gt;
        &lt;option value="2"&gt;Twooo&lt;/option&gt;
        &lt;option value="3"&gt;Three&lt;/option&gt;
    &lt;/select&gt;
    &lt;br /&gt;
    &lt;select id="Select4" name="myddl"  &gt;
        &lt;option value="1"&gt;One&lt;/option&gt;
        &lt;option value="2"&gt;Twooo&lt;/option&gt;
        &lt;option value="3"&gt;Three&lt;/option&gt;
    &lt;/select&gt;
&lt;br /&gt;
    &lt;select id="Select5" name="myddl" &gt;
        &lt;option value="1"&gt;One&lt;/option&gt;
        &lt;option value="2"&gt;Twooo&lt;/option&gt;
        &lt;option value="3"&gt;Three&lt;/option&gt;
    &lt;/select&gt;    
&lt;/div&gt;
</code></pre>

<p><strong>Javascript</strong>:</p>

<pre><code> $('.detail').find('select').attr("disabled"); 

$("#myddl").change(function()
{  $('.detail').find('select').removeAttr("disabled"); 
     $('.detail').find('select').val($(this).val());

});
</code></pre>

<p><strong><a href="http://jsfiddle.net/abuhamzah/8SpTk/5/" rel="nofollow">Live DEMO</a></strong></p>
