Im trying to add very simple autocomplete function to my prestashop addon input. What I want to achieve is something like this:
city.php
<label for="city">City: </label>
And auto.js
$(function() {
var availableTags = [
"London",
"Manchester",
"Liverpool",
];
$( "#city" ).autocomplete({
source: availableTags
});
The problem is that I dont know how to call jquery library in prestashop. I was trying to add something like this in my addon class:
$this->context->controller->addJqueryPlugin('autocomplete');
With no luck...