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
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
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/
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
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