I want to implement a custom search. My code: $(document).ready(function() {
$('#w-input-search').autocomplete({
minLength: 1,
delay: 500,
source: function (request, response) {
$.getJSON("/demo/account/getUsers", request, function(result) {
response($.map(result, function(item) {
return {
label: "<img src='" + item.photoUrl + "'/>"+item.firstName ,
value: item.firstName,
tag_url: "http://" + window.location.host +"/tags/" + item.tagId + "/" + item.name
}
}));
});
},
});
How can I make that list to display images and not the text? "" I must sayI'm a jquery beginner.