I am looking for instructions or anything on the web describing how to get a drop down list to "search as you type"
Example: the classic old nwind.mdb example in MS-Access has an order entry screen. When typing in the products field [when adding a product to the order], the dropdownlist displays the entry matching the typed in letters.
Example: when typing "fi" it shows "filo mix" it also shows the rest of the list below the typed in letters so you can then choose from the list once you are near the area of interest within the list.
I believe the current behavior in the dropdown list I have implemented allows you to type one letter. It takes you to the first occurrence of an entry that starts with that letter. If you press a second key it takes you to an entry that starts with the second letter.
Below is just one bit of code to somewhat describe the method I am currently using.
<div class="row"> <?php echo $form->labelEx($model,'quickMix'); ?> <?php // drg 2010-11-02 echo $form->dropDownList($model,'quickMix', CHtml::listData(mix::model()->findAll(), 'mQuickMix', 'retrvMix')); ?> <?php echo $form->error($model,'quickMix'); ?> </div>
I got this idea from a post on this site.
Can anyone point me to instructions or anything on the web describing how to do this?