[jQuery] [treeview] newbie...

[jQuery] [treeview] newbie...


I have the following code that retrieves data using an ajax get in the
following format:
        $("#"+sid+"_c").remove();
        $("#"+sid).find("a").after("<ul id='"+sid+"_c' />");
        var children;
        $.get(setToNewPage("main.aspx")+"?tree=1&sid="+sid, function(data){
            children = data;
            $("#"+sid+"_c").html(data);
        });