I am currently using an autocomplete widget that displays text along with images. The results I have right now are not meeting my requirements.
I want to customize the appearance of my results so that the words 'test' and either 'Federico' or 'Casey' are displayed on separate lines, directly above each other.
Here is the relevant section of the javascript code for my widget:
)
.data( "autocomplete" )
._renderItem = function( ul, item ) {
return jQuery( "<li></li>" )
.data( "item.autocomplete", item )
.append( "<a>" + "<img src='" + window.module.Globals.prototype.karma_assets + "images/_pricing_tables/best_deal.png' style='vertical-align:text-top;'/>" + item.id + " - " + item.label + "</a>" )
.appendTo( ul );
};
Can someone please advise me on how to modify my output as desired? Thank you!