Basic usage
$("#basic-input").autocomplete({
url: "data", // url to request json data
data: "type=locations", // additional data
onSelection: function (id, name) {
// event triggered when a option is selected
}
});
$("#basic-input").autocomplete({
url: "data", // url to request json data
data: "type=locations", // additional data
onSelection: function (id, name) {
// event triggered when a option is selected
}
});