I found the solution. I simply did $('#name').click();
On Mar 14, 3:08 pm, Jonas <jonas.sjob...@gmail.com> wrote: > I have a text field with autocomplete and now I want to force the list > of matches to show (like when writing a letter). > > Say, the user writes "hello" then unfocus the field. Is it possible to > add an action to a button so when it's pressed it shows the > autocompletematches for the field where the user wrote hello? > > Something along the lines of > $('#field').showResults(); > If there isn't a function for it already, how can I add it manually to > the jquery.autocomplete.js file?