Blah, I meant $('li.parent').prepend(……)
--
Piotr Petrus http://riddle.pl
jQuery is recursive by default. $('ul.parent > li').prepend(yourElement);
--
Piotr Petrus http://riddle.pl
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
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
4 matches
Mail list logo