Felix
Felix

Reputation: 619

Intercept parsleyjs validation

I want to delete validation errors generated by PHP (that is server-side) when user triggers any validation.

I can delete previous validation errors when in fact there are new errors using the errorsContainer option. (As on the next example: http://jsfiddle.net/bzydxoL9/)

But I do want to intercept validations always, no matter if valid or invalid ones.

How can I intercept a validation?

Upvotes: 0

Views: 105

Answers (1)

Marc-André Lafortune
Marc-André Lafortune

Reputation: 79612

Inventive use of errorsContainer, but it's really not meant to be used this way.

Listen to the events like field:validate instead.

Upvotes: 1

Related Questions