Remove node s child and redraw jstree inside selected node

I used jstree to bind data inside it.

But whenever I open a node, I mean expand the node, it overwrites the existing with double time binding. I tried the following frequently asked questions but did not get a solution.

Delete child nodes

Delete child nodes (SOF)

I also tried the following code, which it deletes during debugging, but it binds again with double time.

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

Code example

+4
source share

Source: https://habr.com/ru/post/1680766/


All Articles