[Autocomplete] How to fill an input after a selection?

[Autocomplete] How to fill an input after a selection?

Hi!

I've a form with 2 input text and i use this autocomplete plugin (http://docs.jquery.com/Plugins/Autocomplete) on them both.

I would fill the 2nd input text (with a record selected in the database) when the first input is (auto)completed and vice-versa. Is it possible to do this? And how?

Thanks ;)