title: Submit form using preventDefault() but keeping browser autocomplete feature
body: <p>I am sending the data of a form using ajax, so to override the default browser behavior I am using <code>preventDefault()</code>, but I would like to keep the browser feature to remember the data typed for future autocomplete.</p>
  
  <p>Is it possible to do this?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form id="form-login" action="/padrao/Login/executaLoginAjax" method="post"&gt;
      &lt;input type="text" id="usuario" name="usuario[email]" class="entradas" placeholder="Usuário" maxlength="80" required /&gt;
      &lt;input type="password" id="senha" name="usuario[senha]" class="entradas" placeholder="Senha" maxlength="12" required /&gt;
      &lt;input type="submit" id="btn-logar" value="Acessar o sistema" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>$('#form-login').submit(function(event){
  
      event.preventDefault();
  
      var action = $(this).attr('action');
      var dados  = $(this).serialize();
  
      $.ajax({
          type: "POST",
          url: action,
          data: dados,
          dataType: "json",
  
          success: function(json){
  
              if(json.sucesso){
                  window.location.href = 'http://' + location.host + '/home';
              }else{
                  alert('fail');
              }
  
          }
  
      });
  
  });
  </code></pre>