[jQuery] nested each

2009-02-26 Thread mahakala
Hi all, Is there a way to get reference to parent's this in nested each method return this.each(function() { $(selector).each(function() { // how to get reference to parent's current this :-( }); }); thx in andvance for any help.

[jQuery] nested each - how to access parent's this??

2009-02-26 Thread mahakala
Hi all, I'm new to jQuery and just got stuck on a problem where I'm having 2 nested $.each methods and need to access this of the parent each loop, is this possible at all?? return this.each(function() { $(selector).each(function() { // how do i get reference to this in parent each??