I want to validate the following in the crud generated by yii 2: - that the user can not write a specific special character such as; or as " He tried to implement it using JavaScript but he does not allow me and in addition to this I have another question: Question 2: how can I make yii2 validate a textfield or textfield, while I am writing, validation is done when I leave the text field or when I click on the form's save data button, but not as I write, then how is it done? .. I am working with just username and password and the code I have is the one that yii2 gives me and the base that I have is the one that migrates when installing yii ..