[jQuery] Re: jQuery .click Function Help

2007-04-17 Thread Jörn Zaefferer
Brandon schrieb: The jQuery.each works wonders. It's also cleaner IMO. Thanks, Jörn. There are two cases where you'd wan to avoid using each: When you need to reference "this" without creating a closure and when you've got some real performance issues. Apart from that I use it all the tim

[jQuery] Re: jQuery .click Function Help

2007-04-17 Thread Brandon
The jQuery.each works wonders. It's also cleaner IMO. Thanks, Jörn. Brandon On Apr 17, 1:27 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Brandon schrieb:> I am finishing up a small script using the jQuery library, > and I am > > struggling with a onclick function: > > > for (i=0; i >$(

[jQuery] Re: jQuery .click Function Help

2007-04-17 Thread Jörn Zaefferer
Brandon schrieb: I am finishing up a small script using the jQuery library, and I am struggling with a onclick function: for (i=0; i Oh, or just use jQuery.each: jQuery.each(elements, function(i, value) { $('#'+settings.instancename+'-nav-'+String(i+1)).click(function() {

[jQuery] Re: jQuery .click Function Help

2007-04-17 Thread Jörn Zaefferer
Brandon schrieb: I am finishing up a small script using the jQuery library, and I am struggling with a onclick function: for (i=0; i I think the easiest approach is to copy the value: for (i=0; ihttp://bassistance.de