I have always used the following mask input plugin in my ASP.Net applications:
http://digitalbush.com/projects/masked-input-plugin/
Unfortunately, this does not work well with unobtrusive MVC validation. Validation is triggered on every run, which is annoying. In addition, the regex attribute always fails when an input loses focus because it reads the mask as actual user input before mask control clears it.
Does anyone come across a masked text solution that works well with MVC validation?
source share