I added some js and css files using assets to my app. My problem is that I want to run some function when the user click the submit button, but only after yii validator checked if theres no errors. Right now my function running before yii validator.
How can I do that?
You can use
afterValidateAttribute
. Try following:Updated: