-
-
Save edsono/778919635bbdc76eab5115a33d2c8803 to your computer and use it in GitHub Desktop.
Bootstrap 4 + Parsley JS
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
$("#parsleyForm").parsley({ | |
errorClass: 'has-danger', | |
successClass: 'has-success', | |
classHandler: function(ParsleyField) { | |
return ParsleyField.$element.parents('.form-group'); | |
}, | |
errorsContainer: function(ParsleyField) { | |
return ParsleyField.$element.parents('.form-group'); | |
}, | |
errorsWrapper: '<span class="text-help">', | |
errorTemplate: '<div></div>' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment