title: jQuery Validate and go to page after successful submit
body: <p>I am working with <code>jquery.validate.min.js</code> script and its working fine as far as validation goes.</p>
  
  <p>My problem is that its posting/submiting to data as it should but I need it to actually go to the <code>success.php</code> page after a successful submit.</p>
  
  <p>Right now it just echos from <code>success.php</code> and shows in my main page.</p>
  
  <p>How is the code below:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function() {
  
  $("#form1").validate({
  
      debug: false,
      rules: {
      name: "required",
      email: {
      required: true,
      email: true,
      }
      },
      messages: {
      name: "Please enter your name.",
      email: "Please enter a valid email address.",
      },
      submitHandler: function(form) {
  
      $.post('success.php', $("#form1").serialize(), function(data) {
      $('#result').html(data);
      });
  
      }
  });
  
  }); 
  
  
  &lt;form id="form1" action="success.php" method="POST"&gt;
      &lt;input name="name" type="text" /&gt;
      &lt;input name="email" type="text" /&gt;
      &lt;input type="submit" value="submit" /&gt;
  &lt;/form&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I get it to go to the posting page after a successful submit?</p>