Topic: Ajax autofill web forms other textfield with users input

Hi!

I'm having a table which contains customerid and customername. In webform we have a textfield where we write customerid and i'm trying to find out a solution where observe_field looks input of this textfield:

<%= text_field_with_auto_complete :customer, :user %>

and when this field contains correct customerid this observe_field-textbox should search company's name from database.