Custom client-side unobtrusive validation with jQuery in ASP.NET MVC 4

added by Andrei Rinea
6/28/2013 4:03:39 PM

0 Kicks, 64 Views

In ASP.NET MVC 4 (this started in MVC 3) there is jQuery unobtrusive validation that works hand-in-hand with Data Annotations (a set of validation attributes that can decorate properties or even (view)model classes). In this short tutorial I will go through the making of a custom validator with client-side validation that takes into account two fields.