title: How to use alert message for Validation errors using Html.Validate
body: <p>How to display alert for errors using Html Validate or Html ValidateFor</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $("#RegisterForm").bind('invalid-form.validate',
      function (event, validator) {
      alert(validator.errorMap.FName);
      console.log(validator.errorMap);
      });
      });
  &lt;/script&gt;
  
  
  @using(Html.BeginForm()){
      &lt;span&gt;First Name: &lt;/span&gt;@Html.TextBoxFor(model =&gt; model.FName)
      @{Html.ValidateFor(model =&gt; model.FName);}
  }
  </code></pre>