on click of any of the 3 "chkmain" radio buttons the "child" and "child1" should be enabled
<pre><code>&lt;input type="radio" id="chkMain" name="chkMain"/&gt;
&lt;input type="radio" id="chkMain1" name="chkMain" /&gt;
&lt;input type="radio" id="chkMain2" name="chkMain" /&gt;

&lt;input class="child" type="checkbox" id="chk1" disabled="true" /&gt;
&lt;input class="child" type="checkbox" id="chk2" disabled="true" /&gt;
&lt;input class="child" type="checkbox" id="chk3" disabled="true" /&gt;
&lt;input class="child" type="checkbox" id="chk4" disabled="true" /&gt;
&lt;input class="child" type="checkbox" id="chk5" disabled="true" /&gt;
&lt;input class="child" type="checkbox" id="chk6" disabled="true" /&gt;
&lt;input class="child" type="checkbox" id="chk7" disabled="true" /&gt;

&lt;input class="child1" type="radio" id="tone1" disabled="true"/&gt;
&lt;input class="child1" type="radio" id="tone2" disabled="true"/&gt;
&lt;input class="child1" type="radio" id="tone3" disabled="true"/&gt;


$(function()
  {
   $("input[id^='chkMain']").onclick(function() {
      //var otherCks = $("input[id^='chkMain']").not(this);
           if ($(this).is(":checked")) {
            $(".child").attr("disabled", true);
            otherCks.removeAttr("disabled");
        } else {
            $(".child").removeAttr("disabled");
            otherCks.attr("disabled", true)
        }
    });
    $("#chk_all").click(function() {
        var checked_status = this.checked;
        $("input[id^=chk]").each(function () {
            this.checked = checked_status;
        });
    });
});
</code></pre>
