Created
January 5, 2015 21:46
-
-
Save igortoliveira/86eae76d4dd36f8c1e8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var validator = $.data( this[ 0 ], "validator" ); | |
if ( validator ) { | |
return validator; | |
} | |
// Add novalidate tag if HTML5. | |
this.attr( "novalidate", "novalidate" ); | |
validator = new $.validator( options, this[ 0 ] ); | |
$.data( this[ 0 ], "validator", validator ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment