autocomplete depending on input of another field

Hello everyone

I have the following problem.

I have a model name "products"

Products -id (by default) -code -name -description -quantity

and in one of the forms I need that if I write the code, the others fields be filled automatically with the right value.

How can I do this?? any gem??

Hope you can help me

Thanks

You can call ajax request on change or on lost focus of the code field For send ajax request you can do observe_field or use remote_function

- Chirag Shah

Angelo Cordova wrote in post #1013448:

Thanks for your answer do you have any link to a site with examples or something like that I really don't know much about ajax