combotree 禁止选中某一项

combotree 禁止选中某一项

$("#id").combotree({//只能选择到末尾项
 onBeforeSelect: function(node) {
    if (!$(this).tree('isLeaf', node.target)) {return false;}
},
onSelect: function (node){

//让弹出框显示在最前面
(.panel.window.messagerwindow).css(zindex,9999999); (‘#id’).combotree(‘tree’).tree(‘check’,node.target);
$(‘#id’).combotree(‘tree’).tree(‘expandAll’, node.target);

}
});

你可能感兴趣的:(jsp,javascript)