If you need this functionality for every instance of jqueryui combobox, and not just for a specific selector, you can put it inside $ (widget ("custom-combobox", {statement (good place for it above or below _createShowAllButton)
_showAll: function() var input = this.input, wasOpen = false; $(input) .focus(function() { wasOpen = input.autocomplete("widget").is(":visible"); }); .click(function() { input.focus();
This simply repeats the functionality of the show all button, launching it when focusing. This makes it unnecessary to create a separate binding for each operator and will work with each drop-down list.
source share