Reputation: 7259
I have a nice jstree that loads data and so on - now I need to make it do something when you click a node.
I've succeeded in handling the node_select event, but is there an easy way to make the nodes render as links (as in html <a> tags)?
Edit: It looks like jstree nodes are already links - it uses an <a> tag as well as <li>
Upvotes: 2
Views: 2557
Reputation: 7259
jstree nodes are already links - it uses an <a>
tag as well as <li>
Upvotes: 3
Reputation: 101
.delegate("a","dblclick", function(e) {
$.ajax({
type: "POST",
url: "http://www.google.de",
data: "id="+$(this).parent().get(0).id,
success: function(data){
$("#ajaxcontent").html(data);
}
});
})
Upvotes: 4