Autocomplete: Added custom rendering for custom data demo.

This commit is contained in:
Scott González 2010-04-21 09:57:35 -04:00
parent 6e77ee19bc
commit 32bcf56584

View File

@ -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>