Re: [jQuery] how to stop each iteration under each's function?

2006-11-01 Thread Jörn Zaefferer
Dave Methvin schrieb: but 'break;' won't stop the iteration of each, what should i do? Return false inside the function and it will stop. That was added recently but the docs weren't updated to reflect it. It's true that it was added at some point, but if I remember it correctly, it

Re: [jQuery] how to stop each iteration under each's function?

2006-11-01 Thread Rafael Santos
return false... works for me =P 2006/10/31, Dave Methvin [EMAIL PROTECTED]: but 'break;' won't stop the iteration of each, what should i do?Return false inside the function and it will stop. That was added recently but the docs weren't updated to reflect

[jQuery] how to stop each iteration under each's function?

2006-10-31 Thread asterocean
for exzample: $([EMAIL PROTECTED]'text']).each(function(){if (this.value==){alert(error);this.focus();break;}}); but 'break;' won't stop the iteration of each, what should i do? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] how to stop each iteration under each's function?

2006-10-31 Thread Mark Gibson
asterocean wrote: for exzample: $([EMAIL PROTECTED]'text']).each(function(){if (this.value==){alert(error);this.focus();break;}}); but 'break;' won't stop the iteration of each, what should i do? There was some discussion on this list of returning false to break the loop - but I'm not

Re: [jQuery] how to stop each iteration under each's function?

2006-10-31 Thread Dave Methvin
but 'break;' won't stop the iteration of each, what should i do? Return false inside the function and it will stop. That was added recently but the docs weren't updated to reflect it. ___ jQuery mailing list discuss@jquery.com