Hi,
Checked node should have the CSS class ‘jstree-checked’
(in V1)
$("li").each(function(){
if($(this).attr("class").match('jstree-checked'){
alert(“checked”);
}
}
// bind event for a selected node
$("#divtree").bind("select_node.jstree", function(e,data){
listkeys(data.rslt);
listkeys(data.inst);
// the node id
alert("ID :"+data.rslt.obj.attr("id"));
// The node name
alert("TEXT :"+data.inst.get_text());
}
//debug function
listkeys = function(obj) {
var str = '';
for(j in obj) {str += typeof(obj[j]) + ' : ' + j + '\n';}
alert(str);
}
Patrice
De : jst...@googlegroups.com [mailto:jst...@googlegroups.com] De la part de Abu
Envoyé : mercredi 13 novembre 2013 00:01
À : jst...@googlegroups.com
Objet : [jsTree:8127] Re: Checkbox events with jsTree
--
You received this message because you are subscribed to the Google Groups "jsTree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jstree+un...@googlegroups.com.
To post to this group, send email to jst...@googlegroups.com.
Visit this group at http://groups.google.com/group/jstree.
For more options, visit https://groups.google.com/groups/opt_out.