I have got the form and I do some things after validation with ajax on the page. I do it with
.on('afterValidate', function ()
And all works good, but only first time. After it form is not working, if I will work with it in second time. How I can refresh frontend validation and work with this form again and again on submit? Just
- is not good idea, because form works twice in this mode (form submitted two times, because validation answer from backend will be on first submit and then form data sending to save).