diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 26721863..84fdb6fc 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -643,6 +643,7 @@ container = $(that.suggestionsContainer), noSuggestionsContainer = $(that.noSuggestionsContainer), beforeRender = options.beforeRender, + afterRender = options.afterRender, html = '', category, formatGroup = function (suggestion, index) { @@ -683,6 +684,10 @@ that.fixPosition(); container.show(); + if ($.isFunction(afterRender)) { + afterRender.call(that.element, container); + } + // Select first value by default: if (options.autoSelectFirst) { that.selectedIndex = 0;