hi, jQuery autocomplete plugin sent request like this
mysite.com/suggestion?term=Sadegh
is there any way to change term querystring key to another? i can't find option that provide this for me ;)
hi, jQuery autocomplete plugin sent request like this
mysite.com/suggestion?term=Sadegh
is there any way to change term querystring key to another? i can't find option that provide this for me ;)
I assume you're using jQuery UI AutoComplete
You need to provide a callback as the source, like this:
$(...).autocomplete({
source: function(term, callback) {
$.getJSON("url", { foo: term }, callback);
}
});