You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$( document ).ready(function() {
var options = {
url: function(phrase) {
return "/url_to_api";
},
getValue: function(data){
return data.label;
},
listLocation: function(data) {
console.log(data);
return data[0];
},
noResults: "No Results",
ajaxSettings:{
dataType: "json",
method: "GET",
data:{
dataType: "json"
},
success: function(json){},
error: function(xhr, errmsg, err){
toastr.warning("Unable to fetch search suggestion data from URL. Please make sure that you are connected to the internet. " + xhr.status);
}
},
preparePostData: function(data) {
data.phrase = $("#camp_loc").val();
console.log(data.phrase);
return data;
},
list: {
match: {
enabled: true,
},
hideAnimation: {
type: "slide",
time: 400,
},
},
adjustWidth: false,
requestDelay: 10,
};
$("#camp_loc").easyAutocomplete(options);
});
The data is received successfully, However the eayautocomplete dropdown is not showing up below the input box, which can be seen in the screenshot below.
The text was updated successfully, but these errors were encountered:
I'm trying to use a geocoding API with eac to create a location input with suggestions.
The JSON data returned by the restAPI is formatted like this:
My eac options are set like this:
The data is received successfully, However the eayautocomplete dropdown is not showing up below the input box, which can be seen in the screenshot below.
The text was updated successfully, but these errors were encountered: