« Example 1 Example 3 »

Example 2 - load json data from the server

In this example we load the data from the server using the data-url property on the dom element.

html

<div id="tree1" data-url="/example_data/"></div>

javascript

$('#tree1').tree();