Fork me on GitHub

Clear/Reset MVC 3 Form and Unobtrusive jQuery Client Validation 12

Clear/Reset MVC 3 Form and Unobtrusive jQuery Client Validation
Intro So today I needed to clear a MVC 3 form  with unobtrusive client validation applied to it via jquery.validate.js & jquery.validate.unobtrusive.js. This doesn’t seem too tricky initially until I realized that doing a form reset via a <input type=”reset”/> or a javascript form.Reset() doesn’t eliminate any jQuery validation messages that were displayed! Take a ...