I changed the url, to this, still not working. Anyone sample code where AJAX is used the correct way will help…
thanks
$("#autocomplete").autocomplete({
source: function(request, response) {
$.ajax({
url: '/fetchdata'
type: 'POST',
{#dataType: 'json',
async: true,#}
data: {
search: request.term
},
success: function(data) {
response(data);
}
});