Skip to content

Instantly share code, notes, and snippets.

@edsono
Forked from aaronvanston/form.html
Created July 8, 2018 16:20
Show Gist options
  • Save edsono/778919635bbdc76eab5115a33d2c8803 to your computer and use it in GitHub Desktop.
Save edsono/778919635bbdc76eab5115a33d2c8803 to your computer and use it in GitHub Desktop.

Revisions

  1. @aaronvanston aaronvanston created this gist May 7, 2016.
    12 changes: 12 additions & 0 deletions form.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    $("#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>'
    });