You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find it on NuGet: [jQuery.Validation.Unobtrusive.Native.MVC5](https://www.nuget.org/packages/jQuery.Validation.Unobtrusive.Native.MVC5)
5
+
4
6
jQuery.Validation.Unobtrusive.Native is a collection of ASP.Net MVC HTML helper extensions that make use of jQuery Validation's native unobtrusive support for validation driven by HTML 5 data attributes. Microsoft shipped [jquery.validate.unobtrusive.js](http://bradwilson.typepad.com/blog/2010/10/mvc3-unobtrusive-validation.html) back with MVC 3. It provided a way to apply data model validations to the client side using a combination of jQuery Validation and HTML 5 data attributes (that's the "unobtrusive" part).
5
7
6
8
The principal of this was and is fantastic. But since that time the jQuery Validation project has implemented its own support for driving validation unobtrusively (this shipped with [jQuery Validation 1.11.0](http://jquery.bassistance.de/validate/changelog.txt)). The advantages of the native support over jquery.validate.unobtrusive.js are:
@@ -13,7 +15,7 @@ This project intends to be a bridge between MVC's inbuilt support for driving va
13
15
14
16
You can see more detail on the [demo site](http://johnnyreilly.github.io/jQuery.Validation.Unobtrusive.Native/).
15
17
16
-
##Getting started
18
+
##Getting started
17
19
18
20
If you haven't already, ensure that the following entries can be found in your web.config:
19
21
@@ -28,7 +30,7 @@ Ensure that you have the latest version of jquery.validate.js, you can find it [
28
30
29
31
P.S. If you're using the source code from GitHub in Visual Studio, make sure you have the Package Manager option *"Allow NuGet to download missing packages during build"* set to true. This will ensure that the required packages are downloaded from NuGet.
30
32
31
-
##Examples
33
+
##Examples
32
34
33
35
Where you would previously have written:
34
36
@@ -71,11 +73,11 @@ Inspired by jquery.validate.unobtrusive.js and entirely dependent on http://gith
0 commit comments