Hey,

Not sure if you've resolved this issue yet, but you could try replacing:

$("a").click(function() { 
   alert("Hello world!"); 
}); 

with:

$(function() {
  $("a").click(function() { 
     alert("Hello world!"); 
   }); 
});

That's using the ready() event defined in jQuery, documented here: 
http://api.jquery.com/ready/

Hope that helps you out!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to