Ajax Validation On Blur

In a form, I have an email field that is should be unique. I want users to know as they are typing if the email is unique. Is there a way to tell Yii to do Ajax validation for a form field on keyup (instead of on change)?

I got it working using the client options in the form widget.


    <?php $form=$this->beginWidget('CActiveForm', array(

    'id'=>'form-form',

    'enableClientValidation'=>true,

    'enableAjaxValidation'=>true,

        'clientOptions'=>array(

            'validateOnType'=>true,

        )

)); ?>