1,直接获取:
     单选:$("#id").combotree("getValue")
     多选:$("#id").combotree("getValues")
     注意:如果value中的值和所显示的文本不同,如需获取文本内容,则可以使用getText(),多选同样加s。
 2,在选择事件中获取:
     onSelect:function(node){

        node.text;或者 node.id;
     }

3,使用api中方式

    var t = $("#id").combotree('tree'); // 得到树对象  

    var n = t.tree('getSelected'); // 得到选择的节点  

    alert(n.text);

4,也可以使用循环的方式获取

----------------------------------------------------------------------

1、设置选择值:

  单选:$("#id").combotree("setValue",'value')

相关文章:

  • 2021-06-04
  • 2021-10-22
  • 2021-09-24
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-17
  • 2021-11-08
  • 2021-07-12
  • 2022-12-23
  • 2021-09-30
  • 2021-10-05
  • 2021-08-03
相关资源
相似解决方案