[jQuery] how to stop each iteration under each's function?
<div>for exzample:</div>
<div> </div>
<div>$("input[@type='text']").each(function(){if (this.value==""){alert("error");this.focus();break;}});</div>
<div> </div>
<div>but 'break;' won't stop the iteration of each, what should i do?</div>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/