jQuery trigger() will not always fire naturally-occurring event

If you want to trigger (fire) an event on say a link with id=test from jQuery you can use the


which will simulate that a click event has occured and will execute any jQuery attached events. This is fine, but what if you have not assigned an jQuery event handler? You can simply call the native click() method on the element like this:

jQuery('#test').each(function() {


Leave a Reply