auto complete for multiple textbox

auto complete for multiple textbox

I am having 2 autocomplete textboxes. One for 'product Id' and another for 'product name'.
If I change ID, automatically name should be updated and vice versa. How can I do this.