Return false to stop the iteration loop.
Mike
On 6/17/07, wyo <[EMAIL PROTECTED]> wrote:
I'd like to terminat (beak) the iteration in the following code if a
value is emtpy. Is that somehow possible?
var okay = true;
$('.input_required').each (function (i){
if ($(this).val() == "")
if (!okay) return;
maybe? :P
On 6/17/07, wyo <[EMAIL PROTECTED]> wrote:
I'd like to terminat (beak) the iteration in the following code if a
value is emtpy. Is that somehow possible?
var okay = true;
$('.input_required').each (function (i){
if ($(this).val() == "") {
okay = fal
2 matches
Mail list logo