KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to dynamically add a new node in my jsTree container. It is not working at all. I don't know what i am missing. jsfiddle example $("#tree").jstree({ core: { "animation": 0 }, "html_data": {}, "themes": { "icons": false }, "search": { "case_insensitive": true, "show_only_matches": true }, "plugins": ["themes", "html_data", "search"] }); $("#tree").jstree("create_node", $("node_1"), "after", { "data": "Hello World" }); html: <div id="tree"> <ul> <li id="node1"><a>Hello</a></li> </ul> </div>
Tags (comma-separated)
Save Edits
Cancel