title: ajax replace content lose focus on text box
body: <p>I don't even know if this is possible but here is an example:</p>
  
  <pre><code>&lt;div id="register"&gt;
  //bunch of markup including inputs
  &lt;/div&gt;
  </code></pre>
  
  <p>Via AJAX I replace the register div, but if there is a focus on a text box inside of the register div, it loses focus when replaces happens. Is there a way to maintain focus?</p>
  
  <p>here is the javascript:</p>
  
  <pre><code>$("#cart_contents input").change(function()
  {
      $(this.form).ajaxSubmit({target: "#register_container", success: function()
      {
  
      }
      });
  });
  </code></pre>
  
  <p>I have lots of inputs inside this form, how can I figure out how to refocus</p>