title: How do I trigger a form submission on page load using Jquery
body: <p>This doesn't seem like it should be too difficult to accomplish, but I'm in a rush and I have been looking for a simple answer. I need to submit a form on page load. This is my AJAX submit function which works fine. I just need to figure out how to trigger it on page load.</p>
  
  <p>Any help is much appreciated!</p>
  
  <pre><code>$("form#seller-agreement-form").submit(function() {  
          // we want to store the values from the form input box, then send via ajax below    
          $.ajax({  
              type: "POST",  
              url: "http://www2.myurl.com/formhandler",  
              data: "email="+ email + "&amp;status=" + status,  
              success: function(){  
                  $('form#seller-agreement-form').hide(function(){$('div#output').fadeIn();});  
  
              }  
          });  
      return false;  
      });
  </code></pre>