title: check if form validation is true
body: <p>Hello i have a form that i want to run through form validation and then submit. How can i check if the following function returns true to know that everything has been validated and then submitted?</p>
  
  <h1>I created a fiddle to test</h1>
  
  <p><a href="http://jsfiddle.net/WHGq2/" rel="noreferrer">http://jsfiddle.net/WHGq2/</a></p>
  
  <h1>MODIFIED CODE</h1>
  
  <pre><code>     &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"&gt;&lt;/script&gt;
       &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 type="text/javascript"&gt;
              $(function(){
          $("#form").validate({
              debug: false,
              rules: {
                  name: "required",
                  email: {
                      required: true,
                      email: true
                          },
                  phone: {
                      equired: true,
                      phone: true
                          }
                      },
              messages: {
                  name: "Please let us know who you are.",
                  email: "A valid email will help us get in touch with you.",
                  phone: "Please provide a valid phone number.",
              }
          })  
  
  
      $('#form').submit(function(e){
          // Stop the form actually posting
          e.preventDefault();
  
  
  
  
          // I want to be able to do the check here if the form has passed validation
          if( $(this).valid() ) {
          // Stop the form actually posting
  
          // Send the request
          $.post('/submit.php', {
              name: $('#name').val(),
              email: $('#email').val(),
              phone: $('#phone').val(),
              message: $('#message').val()
          }, function(d){
              alert("Thank you for submitting your request someone will contact your shortly.");
          });
          }
      });
  });
      &lt;/script&gt;
  </code></pre>