title: client side validation not working in asp.net mvc
body: <p>I can't seem to get client-side validation to work in an asp.net mvc3 application. In the config I have </p>
  
  <pre><code> &lt;add key="ClientValidationEnabled" value="true" /&gt;
    &lt;add key="UnobtrusiveJavaScriptEnabled" value="true" /&gt;
  </code></pre>
  
  <p>In my _Layout.cshtml I have</p>
  
  <pre><code> &lt;script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In my page I have </p>
  
  <pre><code>&lt;script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I am just playing around using mvc 3 with ef 4 and my model class just has a field with that is required but client-side validation is not triggering.  It's always posting back. Any ideas?</p>