Help with jsTree plugin

Hi All, I use Jstree plugin in my web page. It work cool, but when i reload content using AJAX this piece of code does not work.

$('#js-tree').on("select_node.jstree", function (e, data) {
    var id =;
    if(typeof userByTree === 'function'){
    // userByTree(id);
}).bind('ready.jstree', function (event, data) {
    $("#js-tree").jstree('open_node', '12', function(e,d){});

What am I doing wrong?

Can you define “does not work” for us? What are you expecting it to do, and what actually happens?

This means that when i reload #js-tree container using AJAX, it brings all data as it was before, but when i click or select some of children links of tree nothink happens.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.