I have a text field to which I have a jquery autocomplete event attached. However, due to some reasons, I dont want the search results to appear when the user types, but rather when a button is pressed. I know this sounds lame, but I have my reasons. How do I trigger the autosearch results to appear by calling an explicit function?
Javascript – Explicitly calling the autocomplete function in jquery autocomplete plugin
autocompletejavascriptjquery
Related Topic
- Javascript – the best way to add options to a select from a JavaScript object with jQuery
- Javascript – How to change the href attribute for a hyperlink using jQuery
- JQuery multiple events to trigger the same function
- Jquery – How to get the ID of an element using jQuery
- Javascript – What does the exclamation mark do before the function
- Javascript – Run javascript function when user finishes typing instead of on key up
Best Answer
Not sure what version of autocomplete you are using. If you use the latest version which is rolled into jQueryUI you can use the search method: