Can't use mouseover with auto_complete_field


#1

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