In VS2010 and ASP.NET MVC 2, it seems that client-side validation (JQuery Futures or the stock option) doesn't quite work as advertised.
I'm noticing that "tabbing off" a validated element will not invoke the client-side validation as promised. For a required field, you have to tab into the element, enter something, then remove it completely, in order to trigger the required validation. That's not really what I'm after here, and I'm hoping it's just a configuration issue on my side.
How do I get the validation effects from previous versions so that a previous value isn't necessary (without having to modify the client-side scripts if possible)?
For those that asked here is a bit of a sample of what I'm doing on the client-side.
<div>
<% Html.EnableClientValidation(); %>
<% using (Html.BeginForm("Signup", "Home", new { area = "Admin" }, FormMethod.Post, new { id = "create_account_form", action = "#" })) { %>
<fieldset>
<div>
<table>
<tr>
<td><label for="Email"> Email</label></td>
<td><%= Html.TextBoxFor(m => m.Email, new { name = "Email", @class = "textfield" }) %></td>
<td colspan="2"><p class="hint"><%= Html.ValidationMessageFor(m => m.Email)%></p></td>
</tr>
<tr>
<td><label for="Company"> Company</label></td>
<td><%= Html.TextBoxFor(m => m.Company, new { name = "Company", @class = "textfield" })%></td>
<td colspan="2"><p class="hint"><%= Html.ValidationMessageFor(m => m.Company)%></p></td>
</tr>
</table>
</div>
</fieldset>
<% } %>