John Resig schrieb: > Can you post your full code? The major change was the destructive > methods in jQuery are no longer destructive - meaning that you may not > need .end() anymore. > > --John
Hey John, in that case my understanding of that topic is also not correct or it is a bug. The following does not produce the expected effect, because the second find starts on the div to search for the p: $('a').parents('li').find('div').toggle().find('p:eq(0)').toggle(); This does work (as expected and like in jQuery 1.0): $('a').parents('li').find('div').toggle().end().find('p:eq(0)').toggle(); And this does: var li = $('a').parents('li'); li.find('div').toggle(); li.find('p:eq(0)').toggle(); Here the original object is not modified, but in the chain it still is when the next filter comes into play. The best thing would be to use: $('a').parents('li').find('div, p:eq(0)').toggle(); Does that work? -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/