title: ASP.Net MVC 3 Unobtrusive validation not working on Partial View
body: <p>I've setup a partial view which houses its own form tag, like so:</p>
  
  <pre><code>&lt;tr&gt;
      @using (Html.BeginForm("Create"))
   {
          &lt;td&gt;
              @Html.TextBoxFor(model =&gt; model.Date)
              @Html.ValidationMessageFor(model =&gt; model.Date)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.TextBoxFor(model =&gt; model.Amount)
              @Html.ValidationMessageFor(model =&gt; model.Amount)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.TextBoxFor(model =&gt; model.Tags)
              @Html.ValidationMessageFor(model =&gt; model.Tags)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.EnumDropDownListFor(model =&gt; model.Type)
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="submit" value="Add" /&gt;
              @Html.ValidationSummary(true)
          &lt;/td&gt;
   }
  &lt;/tr&gt;
  </code></pre>
  
  <p>I render it on a page using @Html.Action("Create") (It's part of a table, hence the &lt;tr&gt; tags.</p>
  
  <p>For some odd reason my clientside validation isn't working, and I first see the errors upon posting.</p>
  
  <p>Is there something special about partial views and clientside validation ?</p>
  
  <p>I have included the following scripts:</p>
  
  <pre><code>&lt;script src="/Scripts/jquery.1.5.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/Scripts/jquery.validate.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I just tried tossing this script onto the page:</p>
  
  <pre><code>jQuery('form').submit(function ()
  {
      alert(jQuery(this).valid());
  });
  </code></pre>
  
  <p>It alerts 'true', so the clientside validation script is definately there, and for some reason it's not checking the fields in question :-/</p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>I've uploaded the entire source code for the page (the HTML + JS) to pastebin: <a href="http://pastebin.com/GvqLW495" rel="noreferrer">http://pastebin.com/GvqLW495</a></p>