Hi Guys,
Yii::app()->clientScript->registerScript('highlightAC','$.ui.autocomplete.prototype._renderItem = function (ul, item) {
return $("<li></li>")
.data("item.autocomplete", item)
.append("<a><img src=\"'.$Image.'\" border=\"0\" width=\"25px\" height=\"25px\"/> " + item.label + "</a>")
.appendTo(ul);
BY refering the above code, I wish to attach my image into an autocomplete search bar where each result will have different image depend on searching append to.But i m stuck where the image is same after I search item. Any1 know what is happening.it is looping with the same image..that is Not what I want.