title: How can I get browser to prompt to save password?
body: <p>Hey, I'm working on a web app that has a login dialog that works like this:</p>
  
  <ol>
  <li>User clicks "login"</li>
  <li>Login form HTML is loaded with AJAX and displayed in DIV on page</li>
  <li>User enters user/pass in fields and clicks submit. It's NOT a <code>&lt;form&gt;</code> -- user/pass are submitted via AJAX</li>
  <li>If user/pass are okay, page reloads with user logged in.</li>
  <li>If user/pass are bad, page does NOT reload but error message appears in DIV and user gets to try again.</li>
  </ol>
  
  <p>Here's the problem: the browser never offers the usual "Save this password? Yes / Never / Not Now" prompt that it does for other sites.</p>
  
  <p>I tried wrapping the <code>&lt;div&gt;</code> in <code>&lt;form&gt;</code> tags with "autocomplete='on'" but that made no difference.</p>
  
  <p>Is it possible to get the browser to offer to store the password without a major rework of my login flow?</p>
  
  <p>thanks
  Eric</p>
  
  <p>p.s. to add to my question, I'm definitely working with browers that store passwords, and I've never clicked "never for this site" ...this is a technical issue with the browser not detecting that it's a login form, not operator error :-)</p>