title: Explain jQuery code sample
body: <p>I inherited the following jQuery code snippet as part of a jquery/AJAX validation system.  I simply need someone to explain the code line by line with comments so I may understand how to change a few actions of the script:</p>
  
  <pre><code>// Use Ajax to send everything to form processing file
  submitHandler: function(form) {
      $("#send").attr("value", "Sending...");
      $(form).ajaxSubmit({
          success: function(responseText, statusText, xhr, $form) {
              $(form).slideUp("slow");
          $("#response").html(responseText).hide().slideDown("slow");
          }
      });
      return false;
  }
  </code></pre>
  
  <p>Specifically, the lines re 'success . . . ' are of particular interest to me, because I can see that $(form).slideUp("slow") causes the form to slide up slowly (kinda obvious, no?).  The 'slideUP' action does not take me to the top of the form, but always somewhere in the middle of the form.  If I understand the jQuery a bit better, I might figure out how to make 'slideUp' always take me to the top of the form.  </p>