I’ve looked around but don’t find what I am looking for: I want CJuiAutocomplete to behave also like a dropdown. That is, I want the list to appear when the CJuiAutocomplete receives focus.
Would someone know how to make the list appear when onFocus is called ?
$this->widget('zii.widgets.jui.CJuiAutoComplete', array(
'model'=>$model,
'attribute'=>'G1',
'value'=>$model->G1,
'source'=>$this->createUrl('master/autoCompleteTexts', array('f'=>'G1')),
'options'=>array(
'showAnim'=>'fold',
),
'htmlOptions'=>array(
'style'=>'width:500px;height:20px;',
'onFocus'=>'console.log("show all items")',
),
));