I have a drop-down select field which has long list of values, I want to select the values from the list as like search to make it easier to select the values for example in my list:
I have
DR X
DR Y
DR Z
so if type Z, the value Dr Z is highlighted for selection. Now I have to type Dr Z to highlight the value.
My code for the drop-down list is like:
<?= $form->field($model, 'doctor_name')->DropDownList(ArrayHelper::map(\app\models\Doctor::find()->all(), 'id', 'doctor_name' ),
[ 'prompt' => 'Please Select' ]) ?>
Looking for some hints.