It took me a while, but I figured out way to generically implement remote client-side validation with xVal / jQuery.validate so that
- Validation rules remain solely in your ASP.NET MVC model
- There is no need to branch or otherwise modify xVal or jquery.validate
- All you have to do for each new remote form validation rule is to derive from the base class shown in this article.
I figured this might also be of interest to other xVal users, so I wrote a blog article on this at
I'd be interested in any feedback you might have on this.