This project has moved and is read-only. For the latest updates, please go here.

How to clear Autocomplete

Oct 6, 2011 at 12:58 AM

I am using the Autocomplete function to provide a list of suggested options for a search input textbox. The user does not have to select one of the autocomplete suggestions to submit their query, e.g. the user can search for part of a name if they don't know the exact person. After the results are returned however, the unused autocomplete options are still shown on the input box. The only way I can see to clear them is to manually clear all of the text from the input box. Is there an option to effectively "un-do" the autocomplete, or another way to escape out of it?

Oct 12, 2011 at 1:35 AM
Edited Oct 12, 2011 at 11:47 PM

Usually if the user continues typing, then there's no longer a match, and there will be no values in the autocomplete. Is there some other behavior that you'd suggest?


Oct 12, 2011 at 6:28 PM

Not sure what happened with your reply

Oct 12, 2011 at 11:48 PM

Sorry; iPhonitis. Fixed it.


Jul 25, 2013 at 7:53 AM
Can you please let me know how you fixed it. I am also in the same situation as you were before.

I want to clear the input box when the user doesnt select anything from the drop down. Kindly let me know.

Suresh A
Jul 25, 2013 at 4:50 PM