[ad_1]
My code goes like this.
var $ = jQuery;
$(function () {
var availableTags = [
{ value: "Sasaki to Miyano", File: '../sasaki-to-miyano.html' },
{ value: "One Piece", File: '../one-piece.html' },
{ value: "Kimetsu No Yaiba", File: '../Demon-Slayer.html' },
{ value: "Koe no Katachi", File: '../koe-no-katachi.html' },
{ value: "Spy x Family", File: '../watch-spy-x-family.html' }
];
$("#tags").autocomplete({
source: availableTags,
select: function (event, ui) {
console.log(ui.item.File);
window.location.replace(ui.item.File)
}
});
});
the final resut is correct.. i just want to add image along with text..
how can i do that??
[ad_2]