Hey Tobias,
I am trying to extend Search field with autocomplete.
I am calling these files into controller-frontend.php
$js_file1 = 'js/jquery.datatables.min.js';
$js_file2 = 'js/currency-autocomplete.js';
$js_file3 = 'js/jquery-1.9.1.min.js';
$js_file4 = 'js/jquery.autocomplete.min.js';
Let’s say that I have an javascript array like this
$(function(){
var products = [
{ value: 'product1'},
{ value: 'product2' },
{ value: 'product3},
];
// setup autocomplete function pulling from products[] array
$('#autocomplete').autocomplete({
lookup: products,
});
});
<input type="search" class="" placeholder="" aria-controls="tablepress-14" id="autocomplete">
I found where to load the external libraries and where to insert id attribute to the input element
How to feed products[] array depending with the values of my hide column with products?
It would be a pro feature, i would push it back to your project with my great pleasure!