Fork me on GitHub

Zeke Sikelianos

Mumblings from the code swamp. Find my more interesting online-ness at zeke.sikelianos.com.

Close a jQuery autocomplete on ENTER keypress.

jQuery UI’s autocomplete opens up with suggestions, but maybe you don’t want them. By default you can hide the suggestions by tabbing away or hitting ESC, but the ENTER key does nothing. This snippet remedies that..


Page 1 of 1