You should put your js
in $(document).ready()
like following. Hope this will help you.
1 $(document).ready(function () { 2 $('#tt').tree({ 3 onClick: function (node) { 4 alert(node.text); 5 } 6 }); 7 });
You should put your js
in $(document).ready()
like following. Hope this will help you.
1 $(document).ready(function () { 2 $('#tt').tree({ 3 onClick: function (node) { 4 alert(node.text); 5 } 6 }); 7 });