Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Yii Autocomplete Suggest And Append Option

$
0
0
Hi all
i wanted to use autocomplete in one of the my forms.i googled it and found a very good example from here




but there is an issue when i implemented the autocomplete functionality

when i type something in textbox the suggestion list is displayed below and i can select items from the list.when i select an item from the list the id of the selected item is saved in the hidden field as it should be.

the problem im facing when i dont select any item from the list and get out of the textbox using tab.let me explain with the help of an example

my autocomplete displays list of names when i press character 'a'.list appears suggesting alan,alax,adam etc
if i select adam from the list then the id for adam will be saved in the hidden field
but if i do not select adam from the list instead i type it.then the hidden field does not have the id of adam.

i want something like when im typing the top most item from the suggestion is automatically appended to the my input and also selected from the list so that when i press tab the top most suggestion item is selected


just like in visual studio 2008 windows forms combobox with suggest append as autocomplete mode.

i want the exact same thing or any thing close to it

please help its urgent

thanks

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>