1,直接獲取:
單選:$("#id").combotree("getValue")
多選:$("#id").combotree("getValues")
注意:若是value中的值和所顯示的文本不一樣,如需獲取文本內容,則可使用getText(),多選一樣加s。
2,在選擇事件中獲取:
onSelect:function(node){node
node.text;或者 node.id;
}api
3,使用api中方式對象
var t = $("#id").combotree('tree'); // 獲得樹對象 事件
var n = t.tree('getSelected'); // 獲得選擇的節點 get
alert(n.text);io
4,也可使用循環的方式獲取function