jquery - Creating multiple children for a node in jstree -
self.handlechildnodes = function(pagefilearray) { var node = $("#move-folder-list").jstree("get_selected"); alert(node.attr("id")); $.each(pagefilearray, function(index, item) { $("#move-folder-list").jstree("create", node, "inside", {attr : {id: index}, data: item.name}, false, true); }); }
in above code snapshot i'm able create 1 kid node when utilize within alternative when utilize after able create kid nodes, not able tree structure. error i'm getting says li has no addback method
, , don't know means.
jquery jstree
No comments:
Post a Comment