title: How to redirect page on Jquery validation success
body: <p>I am using jquery for validation
  set some rules.</p>
  
  <p>If validation success I want to redirect to another page.
  How can I do it?</p>
  
  <pre><code>// validate contact form on keyup and submit
  $("#contactForm").validate({
      //set the rules for the field names
      rules: {
          name: {
              required: true,
              minlength: 2
          },
          email: {
              required: true,
              email: 4
          },
  
      },
      //set messages to appear inline
      messages: {
          name: "Please enter your name",
          password: "Please enter your email"
      }
  
  });
  </code></pre>