title: jQuery Validation + Submit via $.post
body: <p><em>Hello!</em></p>
  
  <p>My problem is the <strong>following</strong>:</p>
  
  <p>The validation plugin works fine for me, except I don't want the form to submit when it isn't still valid.</p>
  
  <p>The fact is, it validates and displays the errors but it does the submit even if it isn't valid.</p>
  
  <p><hr />
  <strong>Validate</strong></p>
  
  <pre><code>$("form#form-utilizadores").validate({
    rules:{
      nome:{
        required:true
      },
      utilizador:{
        required:true
      },
      password:{
        required:true
      },
      tipo:{
        required:true
      }
    }
  });
  </code></pre>
  
  <p><hr />
  <strong>Submit</strong></p>
  
  <pre><code>$('form#form-utilizadores').submit(function(e){
      e.preventDefault();
      var data = $(this).serialize();
      $.post('submit/submit-utilizadores.php',data,function(data){
        alert((data=='sucesso') ? 'Adicionado com sucesso!' : data);
        top.location.reload();
      }
    );
  });
  </code></pre>
  
  <hr />
  
  <p>Thanks for the time spent trying to help me! :)</p>