I need to do field validations on both a client-side and server-side system on the server side I've already been able to do, but I have not found any way to do client-side validations in ASP.NET MVC 4, would anyone have anything that could help me?
I need to do field validations on both a client-side and server-side system on the server side I've already been able to do, but I have not found any way to do client-side validations in ASP.NET MVC 4, would anyone have anything that could help me?
The way to do client validation in MVC4 is through jQuery.Validation :
The attributes placed in your Model are reflected in View , and jQuery.Validation is able to perform this validation on View .
Other validation rules can be placed in View through htmlAttributes
of Razor Helper @Html.