From jQuery UI site (veiw source):
$( "#birds" ).autocomplete({
source: "search.php",
minLength: 2,
select: function( event, ui ) {
log( ui.item ?
"Selected: " + ui.item.value + " aka " + ui.item.id :
"Nothing selected, input was " + this.value );
}
});
So as I see there is no options how to make ajax request with post data to the "search.php"
.
But I need to do that to send some filter from previous input field (current field: city, previous field: country).
How to do that?
Thanks!
type
in Autocomplete API: api.jqueryui.com/autocomplete – Lampblack