# Using text\_field\_with\_auto\_complete with afterUpdateElement

**URL:** <https://www.ruby-forum.com/t/using-text-field-with-auto-complete-with-afterupdateelement/150119>\
**Category:** Rails\
**Created:** [October 3, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/using-text-field-with-auto-complete-with-afterupdateelement/150119 "2008-10-03T22:52:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweetpete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Post date:** [October 3, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/using-text-field-with-auto-complete-with-afterupdateelement/150119/1 "2008-10-03T22:52:29Z")

</div>

Hello everybody!

I’m fairly new to RoR (Rails ver 1.2.6) but have managed to get the  
‘text\_field\_with\_auto\_complete’ working alright in my application.

Next step is to be able to synchronize 2 (or more)  
‘text\_field\_with\_auto\_complete’ fields so that the users selection in  
the first field immediately affects the available choices of the next  
(and so on).

So far I have figured out that ‘afterUpdateElement’ must be the right  
way to go but can’t really find out how to do it right…

Can anybody help on this - preferably with an example?

Regards!

---

<div class="post-metadata">

**Author:** ![sweetpete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Post date:** [October 3, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/using-text-field-with-auto-complete-with-afterupdateelement/150119/2 "2008-10-03T23:07:28Z")

</div>

Peter Jeppesen wrote:

> Hello everybody!
> 
> I’m fairly new to RoR (Rails ver 1.2.6) but have managed to get the  
> ‘text\_field\_with\_auto\_complete’ working alright in my application.

Hello Peter!!!

Sorry to bother you!!! But I have a question how did you do to make the  
auto\_complete work, Iâ€™m trying to do it but nothing happened, look my  
post [Problem with auto\_complete! - Rails - Ruby-Forum](http://www.ruby-forum.com/topic/167142#new) . Peter if you can give  
an example Iâ€™ll appreciate. Thank you!!!
