JS checkBox 获得 选中节点
buttons : { "确定" : function() { var nodes = setting1.getCheckedNodes(true); alert(nodes); $(this).dialog("close"); }, "取消" : function() { $(this).dialog("close"); } }// 初始化树setting1 = { treeId : "zt", checkable : true, expandSpeed : "slow", async : true, checkRang : "level", isParent : true, callback : { expand : zTreeOnExpand, asyncSuccess : zTreeOnAsyncSuccess, change : zTreeOnChange, remove : zTreeOnRemove }};$("#你加载所有节点的外部容器ID:checkbox:checked").each(function (){ alert($(this).val())})
[解决办法]
循环判断一下
[解决办法]
解决了啊,恭喜楼主。接分,谢谢
[解决办法]