ASP.NET MVC 2 Client Side Validation doesn't work as advertised in VS2010

Posted by Daniel Crenna on Stack Overflow See other posts from Stack Overflow or by Daniel Crenna
Published on 2010-05-12T04:16:57Z Indexed on 2010/05/12 4:24 UTC
Read the original article Hit count: 157

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)?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about form-validation