Open VladimirVecera opened 3 years ago
Hi @VladimirVecera! I didn't understand your question ... isn't this code working as expected? Have in mind that /search.php must return a JSON object in the body for it to work properly.
He mean the 'src'...
<script>
$('#search').autocomplete({
source: src,
onSelectItem: onSelectItem,
highlightClass: 'text-danger',
treshold: 2,
});
</script>
How can I get data written in autocomplete and make source data from an external file?