How To Change Default Client Side Validation


I would like to change the default way of client side validation. How can i do this?

You’re talking about some validator or the way CForm behaves?


Thanks for the quick reply. I don’t want to get the fields being in green in client side form validation. like attached image.


If you’re using CActiveForm, refer to the error() method docs. In the htmlOptions attribute you can specify ‘successCssClass’ option.