I've found here that to overwrite one of the autocomplete events. But can somebody please provide me with example how to do the same?