diff options
Diffstat (limited to 'demos/autocomplete/combobox.html')
-rw-r--r-- | demos/autocomplete/combobox.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index 10d165392..4cc98d8f9 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -54,6 +54,12 @@ minLength: 0 }) .addClass("ui-widget ui-widget-content ui-corner-left"); + input.data("autocomplete")._renderItem = function( ul, item) { + return $( "<li></li>" ) + .data( "item.autocomplete", item ) + .append( "<a>" + item.label + "</a>" ) + .appendTo( ul ); + }; $("<button> </button>") .attr("tabIndex", -1) .attr("title", "Show All Items") |