官方有说明的呀Triggered when an item is selected from the menu; ui.item refers to the selected item. The default action of select is to replace the text field's value with the value of the selected item. Canceling this event prevents the value from being updated, but does not prevent the menu from closing.Code examples Supply a callback function to handle the select event as an init option. $( ".selector" ).autocomplete({ select: function(event, ui) { ... } });Bind to the select event by type: autocompleteselect. $( ".selector" ).bind( "autocompleteselect", function(event, ui) { ... });
在options哪一项是没有select这个参数说明的
Supply a callback function to handle the select event as an init option.
$( ".selector" ).autocomplete({
select: function(event, ui) { ... }
});Bind to the select event by type: autocompleteselect.
$( ".selector" ).bind( "autocompleteselect", function(event, ui) {
...
});