http://jqueryui.com/demos/autocomplete/#event-change
It sounds like the change
event is supposed to fire after you've selected an item, but instead it seems to fire onblur, but only if the input has changed.
select
OTOH fires too early, it fires before the input text gets updated.
I want to do something with the input as soon as the user picks an item OR after the user types something and switches focus (like the usual change event).
How can I do that?
ui.item
but then I'd have to treat the 2 cases where the user types something to cause a change, and where the user selects an item, differently (have to access the data differently). Unless we cheat...like I did. But now that you mention it, the data seems to get updated before the close event fires, so I could also trigger the change there. – Demoralize