Forum: Ruby on Rails Can't use mouseover with auto_complete_field

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Hugo M.alhaes (Guest)
on 2005-12-20 18:15
(Received via mailing list)
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
This topic is locked and can not be replied to.