When you click the header (this), it toggles the next list, for which I want to animate the list items. If I use a selector such as $('li') the function works, but I can't figure out how to get it to work with the object chain below.
var elems = $('this').next('ul').children('li'), i = 0; (function flyIn(){ $(elems[i++]).animate({'left': '+=200px'},100, flyIn); })();Ideas?