Going off the example here http://jqueryui.com/demos/autocomplete/#custom-data
I'm wondering how to add a style to the ul
wrapper when using _renderItem()
:
.data( "autocomplete" )._renderItem = function( ul, item ) {
return $( "<li></li>" )
.data( "item.autocomplete", item )
.append( "<a>" + item.label + "<br>" + item.desc + "</a>" )
.appendTo( ul );
};
$(this).data('uiAutocomplete')
instead of 'autocomplete' for these versions. – Rye