Why does HTML does not work in Jquery Autocomplete?

Hi so the results how fine but i am trying to append an image on the left side of the title but it just shows up as an html text. please help

Image Of Search Output Below:

My Search Results

i think you should not do innerHTML in this stuation because we can appandChild only elements create with document.createElement(ā€œpā€). if we are going to display the texts or the element tha way you did. it is possible to use innerHTML

1 Like


then how can i solve it ? i want to use the profile image pic

so i tried the changes you suggested, but the li tag shows empty as it dropdowns

but the console log is working well (as i get the items in the success function)