Making Yii 2 Client side validation work

Recently i have been working on Yii 2 for one of my clients. The application relies heavily on Ajax for loading different components and forms. Since there were forms, I had to use validation as well. Yii 2 has made validation very simple. The server side validation worked perfectly, almost out …