jquery通过一个checkbox控制其他checkbox置灰和可选

                        <div id="popup_win_interfaces" class="popup_mod " style="display:none;">
                                  <input type="checkbox" id="innet_port_checkbox_id"  />
                                  <label><xsl:value-of select="$res/select_all"/></label>
                                 <hr/>
                            <div style="height:130px; overflow-y:auto;">
                                <xsl:for-each select="/HTML_BODY/interface/ifname">
                                    <label for="{.}" style="display: block; width: 24%; float:left;"><input type="checkbox" id="{.}"/><xsl:value-of select="."/></label>
                                </xsl:for-each>
                            </div>
                        </div>

你的代码没有jquery

 $("checkbox").each(function(){ 
    //在这里判断
    this.attr("disabled", true);
});
 $(function(){
$('#innet_port_checkbox_id').click(function(){
  $('其他checkbox的选择器').attr('disabled',this.checked)
})
})