I want to validate
my email address
through jquery unobtrusive validation
. Like to make
any field required , data-val-required
attribute is added in the field. So same for email
validation which attribute i can use?
You can use:
<input type="email" ... />
Of course you need to add the jQuery validation plugin, but I guess you did that already or else the data-val-required
won't work either.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.