三级菜单多选,$(document).ready(function() {
$('.caputure').click(function(){
if($(this).siblings('ul').css('display')=='none'){
$(this).parent('li').siblings('li').slideDown(100);
$(this).siblings('ul').slideDown(100).children('li');
if($(this).parents('li').siblings('li').children('ul').css('display')=='block'){
$(this).parents('li').siblings('li').children('ul').slideUp(100);
}
}else{
//控制子菜单隐藏
$(this).siblings('ul').slideUp(100);
}
})
tableCheckedAll();
tableCheckedList();
});
function tableCheckedAll(){
$(document.body).on('click', '.tabInputList', function(){
if($(this).prop('checked')){//获取是否选中 并判断
$(this).addClass("checked");
$(".tabInput").prop('checked', true);
}else{
$(".tabInput").prop('checked', false);
}
});
};
function tableCheckedList(){
$(document.body).on('click', '.tabInputAll', function(){
var type=$(this).data("type");
if($(this).prop('checked')){//获取是否选中 并判断
$(this).addClass("checked");
$(".tabInputLast"+type).prop('checked', true);
}else{
$(".tabInputLast"+type).prop('checked', false);
}
});
};