I use the ParsleyJS library to validate my form, but if the field is invalid, I only want to apply error classes, but I do not want to display error messages. If I use the data-show-errors="false property, neither the class nor the error is displayed. I used this display:none placement method in css:
ul.parsley-error-list {
display: none! important;
}
ul.parsley-error-list li {
display: none! important;
} and it works, but I wanted to know if this is suitable for this, or if the library has a way to configure it? Thanks!
Rauldinho
source share