-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Clear Method #126
Comments
👍 |
Adding something like this has been discussed in #28 – it's definitely something that'll get added at some point. |
Awesome, look forward to it and thanks for all the hard work. This is def the best autocomplete/suggestion type plugin I've used yet. |
v0.9.1, which should go out shortly, has a $('.typeahead').typeahead('setQuery', ''); |
Nice, thanks again for this one |
how about a clear icon ? |
$('.typeahead').typeahead('val', myVal); worked for me |
This could help, I resolved this simulating the click on cancel button
|
Any chance we could get a clear method to clear the input and typeahead's results? Using jQuery's .val(''); on the input element clears it, but when you focus typeahead adds the last entered text back in. Having a clear method would be useful to create a clear button (similar to the iOS standard search fields) for small screen touch devices where selecting and clearing inputs is a bit more tedious.
The text was updated successfully, but these errors were encountered: