Currently, I'm using jQuery UI autocomplete on a textbox that references an ASHX file.
Everything is working propertly, except I want to append an item at the end of the list that reads: "Item not found? Click here to request to add a new item."
I tried the following the lines of code, but all it did was format the item's, I was unable to append.
data( "catcomplete" )._renderItem = function( ul, item ) {
return $( "<li></li>" )
.data( "item.catcomplete", item )
.append( $( "<a class='ui-menu-item'></a>" ).text( item.label ) )
.appendTo( $('ul').last('.autocomplete-category'));
};
Hints? Tips? Mucho gracias! :D