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
    }
});