Here's my code :
options = {
source: function(request, response) {
$.getJSON('@Url.RouteUrl("Search")', { prefixText: request.term, count : 10 }, function (retour) {
response( retour);
});
}
};
a = $('#test').autocomplete(options);
If i'm searching for test , when i begin to write the autocomplete does a request for t, te, tes and finally test...
The "test" request finish first so the autocomplete show the good result but 2 sec later ith show the result for "tes"
Is there a way to abort the other request when i'm writing ?
Thanks