# Can't use mouseover with auto\_complete\_field

**URL:** <https://www.ruby-forum.com/t/cant-use-mouseover-with-auto-complete-field/73424>\
**Category:** Rails\
**Created:** [December 20, 2005, 5:15pm UTC](https://www.ruby-forum.com/t/cant-use-mouseover-with-auto-complete-field/73424 "2005-12-20T17:15:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo\_M.alhaes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bc79bd/32.png) [@Hugo\_M.alhaes](https://www.ruby-forum.com/u/Hugo_M.alhaes)\
**Post date:** [December 20, 2005, 5:15pm UTC](https://www.ruby-forum.com/t/cant-use-mouseover-with-auto-complete-field/73424/1 "2005-12-20T17:15:53Z")

</div>

Good afertnoon.  
I’m trying to use a mouse over event:

Event.observe(“name\_auto\_complete”, “mouseover”,  
function(){alert(“auto\_complete”)} );

with the auto\_complete\_field bellow.

\<%= text\_field\_tag(“name”) %\>  
\<%= content\_tag(“div”, “”, “id” =\> “name\_auto\_complete”) %\>  
\<%= auto\_complete\_field(“name”, options = {:url =\> { :action =\>  
“name”}})%\>

and it doesn’t work.

Can anyone help me?  
Best regards,  
Hugo
