Include jQuery <script src="jquery.min.js"></script> Include tree.jquery.js: <script src="tree.jquery.js"></script> Include jqtree.css: <link rel="stylesheet" href="jqtree.css"> Create a div. <div id="tree1"></div> Create tree data. var data = [ { name: 'node1', children: [ { name: 'child1' }, { name: 'child2' } ] }, { name: 'node2', children: [ { name: 'child3' } ] } ]; Create tree widget. $(func