Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: input type = email jquery validate overriding mvc data annotation [1051]

$
0
0
When applying the following properties to a model:

```
[Required(ErrorMessage = "Email is required")]
[RegularExpression(RegularExpressions.Email, ErrorMessage = "Email is not valid")]
[DataType(DataType.EmailAddress)]
public string Email { get; set; }
```

1. JQuery validation trumps RegularExpression validation. (Should priority/suppression be allowed).
2. There is no built-in way to localize the validation error from JQuery.

See http://stackoverflow.com/questions/16523525/input-type-email-jquery-validate-overriding-mvc-data-annotation

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>