$("#project").autocomplete({ minLength: 0, URL: ../../, }, select: function (event, ui) { $("#project").val(ui.item.label); $("#project-id").val(ui.item.value); $("#project-description").html(ui.item.desc); $("#project-icon").attr("src", "images/" + ui.item.icon); } }) .data("autocomplete")._renderItem = function (ul, item) { return $("<li>") .data("item.value", item) .append("<a>" + item.label + "<br>" + item.desc + "</a>") .appendTo(ul); };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)