Cjuiautocomplete To Appear More Quickly

I want the search results in CJuiAutoComplete to appear more faster than how it is by default

The code I’m using in the view is as follows:




<?php

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

    'name'=>'family',

    'source'=>array('Fousseni', 'Lamine', 'Man','Fousseni2', 'Lamine2', 'Man2'),

    // additional javascript options for the autocomplete plugin

    'options'=>array(

        'minLength'=>'2',

    ),

    'htmlOptions'=>array(

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

    ),

));

?>



Any idea?

I think you’re looking for the delay option.




    'options'=>array(

        'minLength'=>'2',

        'delay'=>0,

    ),




You could also set the minLength option to 0.

Working better like this




   'options'=>array(

        'minLength'=>'1',

        'delay'=>0,

    ),



Thanks!