I am stuck in weird situation. I am using autocomplete of jquery. I have mapped my URL with but I am getting 404.
Now when I look at the console, my URL is showing like this:
myProject-dashboard-svc/organization/[object%20Object]
While my actual URL is like ../organization/suggestion
below is my full jquery code
$(function() {
$("#searchByText").autocomplete({
source:function(request,response){
$.get({
url:"../organization/suggestion",
dataType:"json",
contentType: "application/json",
data:{
q:request.term
},
success:function(data){
response(data);
}
})
}
})
});
<input type="text" id="searchByText" hidden="true" name="searchByText" placeholder="enter name" class="autoComplete">
Please let me know why URL is displayed like this.
By the way, I have checked in Chrome as well as in Mozilla and I have the jquery-ui-jQuery-autocomplete and jQuery plugins.