Created
June 12, 2012 21:57
-
-
Save pitch-gist/2920380 to your computer and use it in GitHub Desktop.
JavaScript: jQuery Validation Hide Error Labels
This file contains hidden or 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
// form validation | |
$("form").validate({ | |
rules: { | |
// define extra rules | |
}, | |
errorPlacement: function(error, element) { | |
// don't add the error labels | |
return true; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment