jquery tree events didn't work

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 });

 

posted @ 2016-09-19 13:47  一个勤奋的胖子  阅读(115)  评论(0编辑  收藏  举报