I need to connect the tree with MySQL

Skip to first unread message

sera Khmelnitsky

unread,
Dec 15, 2009, 10:33:47 AM12/15/09
to jsTree
I need to connect the tree with MySQL

<ul>
<li id="1" class="open"><a href="#"><ins> </ins>Root node 1</a>
<ul>
<li id="2"><a href="#"><ins> </ins>Child node 1</a></li>
<li id="3"><a href="#"><ins> </ins>Child node 2</a></li>
<li id="4"><a href="#"><ins> </ins>Some other child node with
longer text</a></li>
</ul>
</li>
<li id="5"><a href="#"><ins> </ins>Root node 2</a></li>
</ul>

And I need to get an ID element li - which is tree.focused
But maybe there is another way?

vakata

unread,
Dec 16, 2009, 11:26:20 AM12/16/09
to jsTree
Maybe you mean selected? If so:
$.tree.focused().selected.attr("id")

Cheers,
Ivan
Reply all
Reply to author
Forward
0 new messages