title: function isnt working 'cause of else if statement
body: <p>I've a function with just an if else and an else if, but for some reason my else if isn't working,
  in the chrome console it says <code>Uncaught SyntaxError: Unexpected token 'else'</code></p>
  
  <p>jQuery code</p>
  
  <pre><code>function check_mlastname() {
      var pattern = /^[a-zA-Z]*$/;
      var mlastname = $('#newmlastname').val();
      if (pattern.test(mlastname) &amp;&amp; mlastname !== '') {
          $('#error').hide();
          $('#newmlastname').css('border-bottom', '1px solid #34F458');
      } else {
          $('#error').html('Solo puede contener letras');
          $('#error').show();
          $('#newmlastname').css('border-bottom', '1px solid #F90A0A');
          error_mlastname = true;
      }else if(!$('#newmlastname').val()) {
          $('#error').html('No puede dejar el campo vacío!');
      }
  }
  </code></pre>