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 = false;
    }
    if (!okay) ???
  })

O. Wyss


Reply via email to