Gaurav
Gaurav

Reputation: 8487

Email validation through jquery unobtrusive

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?

Upvotes: 1

Views: 1936

Answers (1)

gdoron
gdoron

Reputation: 150303

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.

Upvotes: 6

Related Questions