i'm using ParsleyJS library to validate my form, but if a field is invalid i only want to apply the error classes but i don't want to display the error messages. If i use the property data-show-errors="false
, then neither the class or the error shows. I used this method of putting display:none
in the 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 the right approach for doing this or if the library has a way to configure it? Thanks!