Hi,
I am using JQuery to load content into a div element and everything is working ok.
$("#content").load('www.urltogetcontentfor.com')
I now want to extend this. The structure I have is that of a tree where each branch may (or may not) have child branches attached to it. What I want to happen is that the JQuery load command is recursively called until there are no children attached to it. Something like the following steps:
- call Jquery load function to load content into 'content' div.
- if the load function returns that children are attached
- Call JQuery load function again to get children
- repeat steps 2 and 3 until no children are available.
Has anyone done this in JQuery or know of a plug in which handles this?
Thanks