Take the 2-minute tour ×  Does anybody know of a method to
trigger an event in Prototype, as you can with jQuery's trigger
function?  I have bound an event listener using the observe
method, but I would also like to be able to fire the event
programatically.  Thanks in advance  share|improve this question
Take a look on my answer. There is a support in prototype... – 
Mohit Jain Sep 14 '10 at 11:43 add comment  4 Answers  up vote
71 down vote accepted  event.simulate.js fits your needs.  I've
used this several times and it works like a charm. It allows you
to manually trigger native events, such as click or hover like
so:   The great thing about this is that all attached event
handlers will still be executed, just as if you would have
clicked the element yourself.  For custom events you can use the
standard prototype method Event.fire().  share|improve this
answer Exactly what I was looking for, thanks very much –  Neil
Aitken Jan 20 '09 at 10:49 Freakin' brilliant! That helped me
out a lot. Thanks :) –  Cale