posted 16 years ago
Hi..
I have a textfield in which im implementing autocomplete.the autocomplete functionality is called after the user types in the first 5 characters.Now my requirement is the user can still type in data even if it doesnt show up in the the div container.Say for example i create a textfield for cities.After the user types in the first 3 chars it shows me a list of cities .The user can pick one from that list ot type in the city if not found in the list.Now i need to show a message "city is found" next to the textbox if the user selects one from the autocomplete list else dont display message.
I have been able to show/hide the message but the problem is say the user first selects the city from the list so i show the message but for some reason its the wrong city the user hits the backspace and clears the value the message is still shown how do i hide it..In the testfield when the user changes the value i need to hide that message any suggestion how to do it.. Can soem one help me in telling what should i be doing to achieve this.is there any event i could use.
Thanks