Blair McKenzie schrieb:
> There is an undocumented feature of jQuery where destructive methods 
> (like eq()) will accept a callback function as a second argument. That 
> function will have the new selection as 'this', but other methods on 
> the chain will still be using the origonal selection. i.e. 
> $("div").eq(n,function(){ this.hide(); }).eq(m,function(){ this.show() });
Yo, but please don't use those. I'd stick with one of the "select one 
element into new jQuery object" until 1.1 is here. 1.1 won't have that 
destructive behaviour anymore (while still providing end()), and most 
likely, the above mentioned will be then redundant and removed.

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to