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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -