Validation of fields in the Client in ASP .NET MVC 4

3

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?

    
asked by anonymous 02.04.2014 / 21:29

1 answer

3

The way to do client validation in MVC4 is through jQuery.Validation :

  

link

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.

    
02.04.2014 / 21:31