JSFiddle - React, Tailwind, and code Playground
by orolo
JavaScript
$.ajax({
url: 'json/customer',
dataType: 'json',
success: function(data) {
$(data.Customer_JSON).each(function(key, value) {
customerNames.push(value.Customer_Name);
});
}
});
//this returns an array
console.log(customerNames);
$("#name").autocomplete({
//this is blank
source: customerNames
//but if i do it like this it works
source: ["stuff": "value"]
});