Hidalgo
Hidalgo

Reputation: 941

Does Unobtrusive validation in .NET 4.5 require jquery.validate?

I am working on ASP.NET web forms project. I am confused as far as what jQuery I need to have in the Script of the page(s) for the .NET 4.5 unobtrusive validation. In some articles I read that I need to have jquery and in some others it says that I need to have jquery.validate. So do I need both of these .js libraries?

Upvotes: 0

Views: 121

Answers (1)

Rory McCrossan
Rory McCrossan

Reputation: 337560

jquery.validate.js relies on jquery.js, so you need both included. Also, ensure that you reference jquery.js before validate otherwise you will get errors.

Upvotes: 1

Related Questions