Tag: mvc
-
What is Data Annotations Extensions?
Data Annotations Extensions MVC C# Visual Studio Data Annotations extensions are for model validation, both on client and server-side. Well, these are great if you’re looking for something simple and fast. Don’t use them if you’re working on a project with many fields and dependencies. If you’re doing complex validation, I would highly recommend writing custom […]
-
How to Reset Form Unobtrusive jQuery?
I was looking around for a way to reset a form that was already validated by Unobtrusive jQuery Client Validation. JQuery validate doesn’t have any way to reset the UI after errors occur. However, you can safely use: var validator = $( “#myform” ).validate(); validator.resetForm(); The best example I found online was on John Culviner […]