jQuery(function() {
var autosuggestions = [
"Airport",
"Restaurant",
"Shop",
"Entertainment",
"Realestate",
"Sports",
"Cars",
"Education",
"Garden",
"Mechanic",
"Offices",
"Advertising",
"Industry",
"Postal",
"Libraries"
];
jQuery('#search-what').autocomplete({
source: autosuggestions
});
});
Please help me to write Ajax AutoSearch Code fetching data from Database and not using var autosuggestions.