title: MVC3 Client Side Validation not working with an Ajax.BeginForm form
body: <p>I have the following form in a partial view</p>
  
  <pre><code>@model PartDetail
  @using (Ajax.BeginForm("Create", "Part", null, new AjaxOptions { UpdateTargetId =       "update_panel"}))
  {
      &lt;h3&gt;New @Model.PartType&lt;/h3&gt;
      &lt;p&gt; Serial Number: 
          &lt;strong&gt;
              @Html.EditorFor(model =&gt; model.SerialNumber)
              @Html.ValidationMessageFor(model =&gt; model.SerialNumber)
          &lt;/strong&gt;
      &lt;/p&gt;
      &lt;p&gt; Name: 
          &lt;strong&gt;
              @Html.EditorFor(model =&gt; model.Name)
              @Html.ValidationMessageFor(model =&gt; model.Name)
          &lt;/strong&gt;
      &lt;/p&gt;
      ...... more relatively boiler plate code here......
      &lt;p&gt;
          &lt;input type="submit" class="btn primary" value="Save Part"/&gt;
      &lt;/p&gt;
  }
  </code></pre>
  
  <p>With a model of </p>
  
  <pre><code>public class PartDetail
  {
      public string DateCreated { get; set; }
      [StringLength(255, MinimumLength = 3)]
      public string Description { get; set; }
      public Guid ID { get; set; }
      public string IsActive { get; set; }
      public string Manufacturer { get; set; }
      public IEnumerable&lt;SelectListItem&gt; Manufacturers { get; set; }
      [StringLength(100, MinimumLength = 3)]
      public string Name { get; set; }
      public string PartType { get; set; }
      [Required]
      [StringLength(100, MinimumLength = 3)]
      public string SerialNumber { get; set; }
  }
  </code></pre>
  
  <p>And I reference (in parent views of my partial view)</p>
  
  <pre><code>&lt;script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"&gt; &lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.js")" type="text/javascript"&gt; &lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"&gt; &lt;/script&gt; 
  </code></pre>
  
  <p>And nothing gets validated.  If I type nothing into the Serial Number text box and press submit it saves it to the database with no problems.</p>