Hi I am a yii bie and I just stuck in a problem, I Implemented searchable drop down list, But my problem is when I start typing in the searchable drop down field, values from database comes into dropdown list, so if I type something which is not in the drop down list, I get "no results found" which is correct. But my typed value gone as soon as left the drop-down.
<?php $this->widget('ext.select2.ESelect2',array( 'name'=>'BusinessItems[business_id]', 'data'=>CHtml::listData(Business::model()->findAll(), 'id', 'business_name'), //the whole available list 'htmlOptions'=>array( 'placeholder'=>' search Business name?', //'options'=>$options, //the selected values //'multiple'=>'multiple', 'style'=>'width:530px', ), )); ?>
So how can i retain the value which i typed in the field??? Actually my case is if no results found the typed should remain in the drop down field.