text_field_with_auto_complete onselect

I'm trying to use a autocomplete text field like the one showed in
scriptaculous

http://demo.script.aculo.us/ajax/autocompleter_customized

It works. But I want to call a javascript function just afterwards the
users selects one name.

Is there any
         onselect=>'do_something()'
to use with text_field_with_auto_complete ?

Thanks

Christian

Yes, there's:

   :after_update_element => "function (e, v) { ... }"

The first argument of the JavaScript function is the textfield element and so e.value holds the selection, v is the corresponding list item.

-- fxn