parsley.js

how to disable validation for a field


In parsley2, is there no way to disable validation for a field? i.e. I have a <select>-control, which will always return a value and needs to further validation. Parsley's unneeded error-list, however, ruins my formatting - so I'd like to disable validation complately for that field. I know I could assign a different error-container, but that feels 'unclean'...

I tried to add data-parsley-exclude="select" to the form, but that has no effect. (It was a wild guess anyway...)


Solution

  • You can:

    You could think for a more "clean" exclusion method and submit it in a PR.

    Best