[jQuery] [autocomplete] trigger function on data retrieval?

[jQuery] [autocomplete] trigger function on data retrieval?


does anyone know if it is possible to trigger a function on an
autocomplete retrieval ( using this autocomplete library
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ )
example:
i'm currently using result() to store the id of a currently selected
item in a hidden field when a user selects something.
if they hit a new key, go forwards/backwards/etc, ie - when a new
search is performed, i'd like to catch that and result that id to
null.
is this possible on the current version or should i ticket a feature
request?