php - yii multiselect dropdown with search property? -


i want searchable multiselect dropdown.i have seen yii multiselect , echmultiselect extension these not according need. please suggest ext or code this. suggestion appreciated.

dropdown example - same stackoverflow uses tags input.

you can use chosen plugin. available yii extension, called chosen widget

example of usage:

    //1st step make list box proper selector     <?php echo chtml::activelistbox($model, 'attribute', $data, array('class'=>'chosen', 'multiple'=>true, 'data-placeholder'=>'select')) ?>      //2nd step use widget     <?php $this->widget('ext.chosen.echosenwidget',array(         'selector'=>'.chosen',     )); ?> 

it magic , convert normal multiple select searchable multiple select. of course there lot of options, described in chosen plugin documentation.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -