[jQuery] Re: Unresponsive script when navigating away

2008-11-04 Thread ricardobeat
> > > > Date: Sat, 1 Nov 2008 18:07:18 +1100 > > From: [EMAIL PROTECTED] > > To: jquery-en@googlegroups.com > > Subject: [jQuery] Re: Unresponsive script when navigating away > > > Oh and ":checkbox" is a "shortcut" for "input[type=checkb

[jQuery] Re: Unresponsive script when navigating away

2008-11-03 Thread Cheng S . Kai
Thanks.! will try that Regards, Kai > Date: Sat, 1 Nov 2008 18:07:18 +1100 > From: [EMAIL PROTECTED] > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: Unresponsive script when navigating away > > > Oh and ":checkbox" is a "shortcut" for "

[jQuery] Re: Unresponsive script when navigating away

2008-11-01 Thread Karl Rudd
Oh and ":checkbox" is a "shortcut" for "input[type=checkbox]". Karl Rudd On Sat, Nov 1, 2008 at 6:05 PM, Karl Rudd <[EMAIL PROTECTED]> wrote: > Instead of doing the search each time, cache the selected objects. > > > $(document).ready(function (){ > var checkboxes = $('div[n

[jQuery] Re: Unresponsive script when navigating away

2008-11-01 Thread Karl Rudd
Instead of doing the search each time, cache the selected objects. $(document).ready(function (){ var checkboxes = $('div[name=limit1] label input[type=checkbox]'); checkboxes.bind('click',function(){ checkboxes.each(function(){