title: Standard Form Submit vs Ajax Form Submit - Browser Auto Save/Suggest User Input
body: <p>Most of us that use forms combined with ajax probably noticed that the input submitted by the user is not saved/suggested by the browser in later sessions. This is a downfall when it comes to 'sign in' pages. The browser usually offers to save the username/password, which is very handy, yet with an ajax form submit ....well, you know, this just doesn't happen.</p>
  
  <p>I've seen this question twice on here and still no answers.  Its been about 9 months since it was asked, and I know there is a lot of smart people around here. So....I have decided to resurrect this question.</p>
  
  <p>What can we do to resolve this?
  Can we trick the browser somehow?</p>
  
  <p>I am willing to work back and forth on this since I know it would be nice to have a working solution for all of us to use.</p>
  
  <p><strong>Final Solution based off the answer from <em>slashingweapon</em></strong> (Thanks Man!)</p>
  
  <p><strong>HTML</strong> - Using a custom button to submit, along with no form 'action' or 'method', only ajax</p>
  
  <pre><code>&lt;form id="signin"&gt;
  
      &lt;label for="username"&gt;Username&lt;/label&gt;
      &lt;input type="text" id="username" name="username" /&gt;
  
      &lt;label for="password"&gt;Password&lt;/label&gt;
      &lt;input type="password" id="password"  name="password" /&gt;
  
      //Custom Styled Submit Button
      &lt;img id="submit" class="form_button" src="btn_txt_sign_in.png" alt="Sign In" tabindex="3" /&gt;
  
      //Hidden Standard Form Submit Button
      &lt;input id='trigger' type='submit' style='display:none;' /&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>JQuery</strong></p>
  
  <pre><code>// Bind a click to the Custom Submit Button
  $('#submit').click( function() {
      //Trigger a Click on the Hidden Standard Form Submit 
      $('#trigger').click();
  });
  
  // Detect when the form attempts to be submitted
  $('#signin').submit( function(e){
      // Prevent Standard Form Submission
      e.preventDefault();
      // Perform Function containing Ajax Submission instead
      submit_signin();
  });
  
  // Ajax Submission
  function submit_signin() {
      //My Ajax Call....
  }
  </code></pre>