title: how to redirect after form submission with jQuery validate
body: <p>I am using the jQuery validate plugin to valide a contact form before it is submitted.</p>
  
  <p>The problem is that I should redirect to a 'thank you' page after a successful form submission.</p>
  
  <p>Is this possible?</p>
  
  <p>My validation code looks like this:</p>
  
  <pre><code>$("#contactForm").validate({
    //debug: true,
  
    rules: {
  
      fullname: "required",
  
      email: {
        required: true,
        email: true
      }
    },
    submitHandler: function(form) {
      form.submit();
      window.location.href = "/confirm.html";
    }
  
  });
  </code></pre>
  
  <p>for some reason</p>
  
  <p>window.location.href = "/confirm.html");</p>
  
  <p>is never executed.</p>
  
  <p>Thanks for your help,</p>
  
  <p>Anthony</p>