Cjuiautocomplete Problem

I try to make an example to use CJuiAutoComplete like below but it’s not working, can someone tell me how to fix it ?

thank you




$this->widget('zii.widgets.jui.CJuiAutoComplete', array(

    'name'=>'city',

    'source'=>array('ac1', 'ac2', 'ac3'),

    'options'=>array(

        'minLength'=>'2',

    ),

    'htmlOptions'=>array(

        'style'=>'height:20px;'

    ),

));



Hi

After trying to find out the problem i figured out that there is a javascript error saying :




typeError: b.element.propAttr is not a function



but I don’t know how to fix it ? any help please.