MGOwen
MGOwen

Reputation: 7259

How can I make jstree render nodes as links?

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

Answers (2)

MGOwen
MGOwen

Reputation: 7259

jstree nodes are already links - it uses an <a> tag as well as <li>

Upvotes: 3

hardy
hardy

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

Related Questions