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
How to trigger the autocomplete #236
Comments
|
same problem here, have you solved it? |
|
Wondering the same thing ... |
|
There is no trigger event, but this workaround works for me: It's not perfect (the list won't disappear when clicking an item), but it is at least something. |
|
I made some changes to the script: and now I can do this: |
|
You can just use key var evt = jQuery.Event("keyup");
evt.keyCode = 41; // 41 key is for select
$(e.target).trigger(evt);It quite annoying that this has to be done this way, but that fine. |
|
@socheatsok78 you save my day! thanks! |
Can I manually trigger the autocomplete function?
I want to do something along the lines of...
But the trigger("change") doesn't trigger the ajax call for autocomplete and so the results list never displays. I figure there must be an easy way to do this, but I've tried several triggers and to no success.
The text was updated successfully, but these errors were encountered: