I am referring to this plugin: http://jqueryui.com/demos/autocomplete/
So the original structure for the results is
You need to replace the _renderItem method (for the autocomplete in question):
$("selector").autocomplete({ ... })
.data( "autocomplete" )._renderItem = function( ul, item ) {
return $( "" )
.data( "item.autocomplete", item )
.append( "" + item.label + "" )
.appendTo( ul );
};
(assuming the items in your source have a property called customattribute)
As shown in this example: http://jqueryui.com/demos/autocomplete/#custom-data