Using Parsley.js, is it possible to specify the element that should hold the error messages? I tried:
$('#myForm').parsley({
errors: {
container: {
$('#errorMessages')
}
}
});
But the error messages are still placed right after my form inputs.
I've added another data-attribute, data-parsley-errors-container="#element"
.
That could allow you modify the DOM to specify where the error messages will be displayed.
More info here: http://parsleyjs.org/doc/index.html#ui-for-field
Best
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With