title: Posting/submitting multiple forms in jQuery
body: <p>I have two forms on a page (one is being grabbed by AJAX).  I need them both to be posted, so I serialize the second one and send it in a post using jQuery before submitting the first one.  However, only the first form appears to be getting posted.  The odd thing is though, if I put an alert after the serialized post it works as expected.  What exactly is my problem here?  </p>
  
  <pre><code>$("#submit").livequery('click', function() {
      var form = $("#second_form");
      var action = form.attr("action");
      var serialized_form = form.serialize();
      $.post(action, serialized_form);
  
      //alert('test');
  
      $("#first_form").submit();
  
      return false;
  });
  </code></pre>
  
  <p>Is there any better way to post two forms and then redirect to a new page on a button press?  I tried posting both of them using the method above and then using window.location to change pages but I had a similar problem.</p>
  
  <p>Much thanks!</p>