# Autocomplete after update

**URL:** <https://www.ruby-forum.com/t/autocomplete-after-update/173652>\
**Category:** Rails\
**Created:** [August 12, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/autocomplete-after-update/173652 "2009-08-12T19:26:45Z")\
**Posts on this page:** 1\
**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 12, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/autocomplete-after-update/173652/1 "2009-08-12T19:26:45Z")

</div>

I am trying to just render an ajax request to display the values at a  
site when the user selects a site, I have this:

\<%= text\_field\_with\_auto\_complete :site, :name,  
:with =\> "‘ci=’ + element.value ",  
:after\_update\_element =\> remote\_function( :url =\> { :controller =\>  
‘sites’, :action =\> ‘updatesearch’ } ) %\>

It is not doing anything when I select a value. Any ideas?
