Skip to content
Permalink
Browse files

Autocomplete: Added custom rendering for custom data demo.

  • Loading branch information...
scottgonzalez committed Apr 21, 2010
1 parent 6e77ee1 commit 32bcf56584b81172fd9882ba0c2e3b34bd9220e2
Showing with 7 additions and 1 deletion.
  1. +7 −1 demos/autocomplete/custom-data.html
@@ -64,7 +64,13 @@
return false;
}
});
})
.data( "autocomplete" )._renderItem = function( ul, item ) {
return $( "<li></li>" )
.data( "item.autocomplete", item )
.append( "<a>" + item.label + "<br>" + item.desc + "</a>" )
.appendTo( ul );
};
});
</script>
</head>

0 comments on commit 32bcf56

Please sign in to comment.
You can’t perform that action at this time.