Groups
Groups
Sign in
Groups
Groups
jsTree
Conversations
About
Send feedback
Help
I need to connect the tree with MySQL
23 views
Skip to first unread message
sera Khmelnitsky
unread,
Dec 15, 2009, 10:33:47 AM
12/15/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
12/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsTree
Maybe you mean selected? If so:
$.tree.focused().selected.attr("id")
Cheers,
Ivan
Reply all
Reply to author
Forward
0 new messages