asp.net mvc 4 - jquery.validate.js file in MVC4 project -
does jquery.validate.js file required work dataannoations validations in mvc4?
i removed file project, validations not working, take important role dataannonations validations?
if want work dataannotations , have client side validation include below scripts.
<script src="/scripts/jquery.unobtrusive-ajax.js"></script> <script src="/scripts/jquery.validate.js"></script> <script src="/scripts/jquery.validate.unobtrusive.js"></script> they available nuget packages well.
so jquery.validate.js needed, other files well.
and make sure
<add key="clientvalidationenabled" value="true" /> <add key="unobtrusivejavascriptenabled" value="true" /> is set true in webconfig.
Comments
Post a Comment