Alix Axel Alix Axel - 11 months ago 71
Javascript Question

Parsley.js - Displaying Errors in a Specified Element

Using Parsley.js, is it possible to specify the element that should hold the error messages? I tried:

errors: {
container: {

But the error messages are still placed right after my form inputs.

Answer Source

I've added another data- attribute, data-parsley-errors-container="#element" that could allow you directly in dom to specify where the error messages will have to be displayed.

More info here: