Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此控件具有以下事件select:
select
select( event, ui )
如何从ui对象中获取选定的值
ui
http://api.jqueryui.com/autocomplete/#event-select
您可以从对象成员value公开的恰当命名的属性中获取选定的值:itemui
value
item
select: function(event, ui) { console.log(ui.item.value); }