jQuery UI Autocomplete Combobox: Pick 1st item with enter key

Posted März 21st, 2012 in javascript by ov3rk1ll

So, I was using the jQuery UI autocomplete module with the provided example code from http://jqueryui.com/demos/autocomplete/#combobox.

Sadly, I this example, pressing the return/enter key is doing nothing so I added a few lines of code to make the enter key select the 1st entry from the autocomplete box and trigger the select-element’s change event.

Continue Reading »