title: How to make Chrome remember password for an AJAX form?
body: <p>I'm using AJAX for fast input validation on my login page. If everything is correct, the user is redirected.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>$(form).submit(function () {
      $.post($(this).attr('action'), $(this).serialize(), function (data) {
          if (data.status == 'SUCCESS') {
              window.location = data.redirectUrl;
          }
     }
  ...
  </code></pre>
  
  <p>It works really well in all browsers. But there's a problem in Chrome. It doesn't offer to save the password.</p>
  
  <p>When JavaScript is turned off, the password is saved, so the problem is definitely in redirection to a new location.</p>
  
  <p>How can I fix that?</p>