title: MVC 3 RC 2 - Check model state to prevent postback
body: <p>I'm doing a postback of a partial view with the code below.  The controls in the partial view have mvc 3 rc 2 data annotations on them.  When I submit the form with errors the errors show on the controls but the form still gets submitted.  Is there a way to check the model state on the client side so that the $.post in the function below can be stopped from been executed.  Thanks.</p>
  
  <pre><code>$('#vehicleDetailsForm').submit(function () {
  
          $.post($(this).attr("action"), $(this).serialize(), function (result) {
              $('#vehicleDetailsPartialView').html(result);
          });
          return false; 
  });
  </code></pre>