[jQuery] [treeview] Attach callback to all node types
Thanks for a great plugin.
What I'd like is to have any node load some html into another
column of my page, instead of having to reload the whole new page.
I found the toggle function in the third example, hoped to use
that to load the html.
toggle: function() {
window.console && console.log("%o was toggled", this);
}
I tried using <span> for all nodes, whether expandable or leaf nodes,
but <span> doesn't produce a hitarea for leaf nodes so it's not
clickable.
Using all links instead of <span>, how can I disable the link click so
just the toggle runs?
Someone must have done this already, but all the examples I've seen
on this board reload the entire page.