autocomplete: how to hook on on blur events?

autocomplete: how to hook on on blur events?

hi

I've a autocomplete on top of an input text and I would like to hook in each time the user changes something in it.

I tried to put a blur() on it but then the autocomple behavior wasn't working anymore. How can I get both ?

For some willing to know, I'm trying to do an autocomplete where only the values selected from the list of choices are accepted. Any hint welcome