Remove child nodes and redraw jstree inside selected node

Viewed 532

I have used jstree to bind the data inside it.

But whenever I open the node I mean expand the node it overwrite the existing with double time binding I have tried following FAQ but not getting the solution.

Remove Child Nodes

Remove Child nodes (SOF)

I have also tried the following code it removes in debugging but it binds again double time.

$("#" + $("#jstree").jstree("get_selected")).find('li').remove();

Sample code

0 Answers
Related