# 2 autocompleters

**URL:** <https://www.ruby-forum.com/t/2-autocompleters/174185>\
**Category:** Rails\
**Created:** [August 22, 2009, 1:15am UTC](https://www.ruby-forum.com/t/2-autocompleters/174185 "2009-08-22T01:15:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [August 22, 2009, 1:15am UTC](https://www.ruby-forum.com/t/2-autocompleters/174185/1 "2009-08-22T01:15:44Z")

</div>

Is there a way to get 2 autcompleters using the same fields to work on  
the same page? I have something similar to twitter autocomplete at  
the top of the form and I am also trying to get another one working  
for an inline edit.

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [August 24, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/2-autocompleters/174185/2 "2009-08-24T14:23:59Z")

</div>

Is this what you’re looking for?

[http://patshaughnessy.net/repeated\_auto\_complete](http://patshaughnessy.net/repeated_auto_complete)

- pat

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [September 15, 2009, 4:55am UTC](https://www.ruby-forum.com/t/2-autocompleters/174185/3 "2009-09-15T04:55:38Z")

</div>

I am getting this for one of the autocomplete id:

I am trying to ajax send the text field to the server and remove the  
text  
fro the field upon rjs send back. How do I figure out what that number  
comes from so I can reference it for the ajax send and text field clear?
