trying to use a list of numbers as the source for the jquery ui autocomplete, but I’m having issues populating the data object from the list. Something along these lines :
var data
$('.numberList li').each(function (index) {
data += [$(this).text()];
});
and the source:
$("#numberText").autocomplete({
source: data
});
You’ll need to use the push method instead of += to add items into an array; like this:
I hope this helps!