Alix Axel Alix Axel - 3 years ago 188
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:


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download