Created
September 9, 2010 23:56
-
-
Save ahawkins/572798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(something).autocomplete(option).data( "autocomplete" )._renderItem = function( ul, item) { | |
var term = this.term; // what the user typed into the box, can do some fanciness now | |
return $( "<li></li>" ) | |
.data( "item.autocomplete", item ) | |
.append( $( "<a></a>" ).text( item.label ) ) | |
.appendTo( ul ); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment