Apparently the problem was that I have included my own jquery.js.
The solution is to add this line in beginning of the layout:
Yii::app()->clientScript->registerCoreScript('jquery');
related: http://www.yiiframework.com/forum/index.php/topic/17846-jquery-conflict-ajax-validation-not-working/