[jQuery] Re: Expanding tree + styling

2007-09-10 Thread Piotr Petrus
Blah, I meant $('li.parent').prepend(……) -- Piotr Petrus http://riddle.pl

[jQuery] Re: Expanding tree + styling

2007-09-10 Thread Piotr Petrus
jQuery is recursive by default. $('ul.parent > li').prepend(yourElement); -- Piotr Petrus http://riddle.pl

[jQuery] Re: Expanding tree + styling

2007-09-10 Thread Ditikos
Sorry, I meant that within there is a caption link. In other words, my list will be completely linkable to other pages. So I've managed to prepend the level one li with a graphic. Now I need a way to make a recursive function to apply the graphic and the functionality to all child nodes up to th

[jQuery] Re: Expanding tree + styling

2007-09-09 Thread Piotr Petrus
1) cannot be a link. 2) Add class="parent" and insert dynamically small element with graphic (for example, plus) and attach event listener expanding list to that element. -- Piotr Petrus http://riddle.pl