CAutoComplete show list of all options on focus


I’m having a CAutoComplete control that don’t have really much data to render.

So I want it to show all options when user focuses it.

I don’t know javascript very much so I’m asaking to help :)

Thank you!

Use html <select> component if there are few options

You just have to set minLength option to 0.

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




    // additional javascript options for the autocomplete plugin