How to prevent closing the menu after a select?
问题 I am using the jQuery Autocomplete widget and, inspired by this question in order to prevent closing the menu after select , I came up with this code: $(#input_field).autocomplete({ select : function(event, ui) { // I also tried to run 'ui.item.data( "item.autocomplete" );' and it happens // the same thing (keep reading for more information). ui.item.option.selected = false; }, ... }); It works: the menu is not closed after select. However, I get the following error (in the Firebug console):