Alert() call in jQuery not displaying, called from within a JsTree
<p>I don't see the alert in this code. It is possibly a typo because i traced the code as it was executing and I receive the correct "nodeInfo" the alert just doesn't come up.</p>

<pre><code>    function loadTree(jsonData){
        var treeInfo = attachTree(stageTreeData(getJson(jsonData)));
        $("#apple_tree").jstree({                           
        "json_data": {"data": treeInfo},    
        "plugins" : [ "themes", "json_data", "ui" ]
        }).bind("select_node.jstree", function (event, data) {
           // `data.rslt.obj` is the jquery extended node that was clicked
           var nodeInfo = data.rslt.obj.attr("id");
           alert(nodeInfo);
       });
    }
</code></pre>

<p>Thanks for any and all help!!</p>

<p>EDIT #1 Changed the code structure:</p>

<pre><code>function loadTree(jsonData){
    var treeInfo = attachTree(stageTreeData(getJson(jsonData)));
    $("#apple_tree").jstree({                           
        "json_data": {"data": treeInfo},    
        "plugins" : [ "themes", "json_data", "ui" ]
    });
    $("#apple_tree").bind("select_node.jstree", function (event, data) {
        // `data.rslt.obj` is the jquery extended node that was clicked
        var nodeInfo = data.rslt.obj.attr("id");
        alert(nodeInfo);
    });
}
</code></pre>

<p>Still no luck on the alert() showing up.</p>
