title: ELSE statement running one time per ".each" element
body: <p>I have a form, sent trough Ajax. First it checks if all inputs are filled (if not, applies style, and the <code>msg()</code> function makes error emerge), and if they are filled, stores data and sends it trough Ajax:</p>
  
  <pre><code>$(document).on('click','.accepEditedData',function(){
      obj=$(this);
      sectionEdit=obj.attr('data-section');
      newInputs=$('input[data-sectionC='+sectionEdit+']');    
      newInputs.each(function(){
          if ($(this).val() === ""){
              msg('error','Por favor, rellena todos los campos, o cancela la edición de tu información.');
              $(this).css('border-bottom','2px solid red').css('color','red');
              return false;
          }
          else{
              if(obj.hasClass('updateInfoBasic')){
                  name=$("input[name='us_name']").val();
                  tlf=$("input[name='us_tlf']").val();
                  mail=$("input[name='us_mail']").val();
                  $.post('../actions/updateInfoBasic.php',{us_name:name, us_mail:mail,us_tlf:tlf}).success(
                      function(){  
                          msg("success","Tu información básica ha sido actualizada");
                  });
              }
  
          }
  
      });
  });
  </code></pre>
  
  <p>I have the next issue: ELSE statement runs one time per each element stored on <code>newInputs</code> variable. </p>
  
  <p>When the first IF statement checks 3 inputs, the ELSE statement runs 3 times (including both its ajax call and its <code>msg('success','...');</code> function. And the same happens with 4, 6, etc... the total inputs are checked trough <code>.each</code>, the total times the ELSE is executed.</p>
  
  <p>Theorically, if all inputs are filled, the ELSE statement should only run once.</p>