title: Preventing form from being submitted with manual validation
body: <p>I implemented some custom validation logic with JQuery and Unobtrusive validation with help of the following post:</p>
  
  <p><a href="https://stackoverflow.com/questions/7380278/manually-set-unobtrusive-validation-error-on-a-textbox/7988611#7988611">Manually set unobtrusive validation error on a textbox</a></p>
  
  <p>To save you time reading through that post here is the simple javascript that forces a validation message to be displayed if something fails:</p>
  
  <p>On my textbox <code>.blur():</code></p>
  
  <pre><code>var errorArray = {};
  errorArray["Slug"] = 'Some error message for the Slug text box';
  $('#SomeFormId').validate().showErrors(errorArray);
  </code></pre>
  
  <p>Works great.</p>
  
  <p>My problem is while the failed validation message is displayed, when submit is clicked the form submits just fine.</p>
  
  <p>How can I implement custom validation with code above and prevent the form from being submitted when the message is displayed ? I tired doing something like <code>$('#SomeFormId').valid = false;</code> but it didn't work.</p>
  
  <p>Thank you.</p>