Out of curiosity, how can I jQueryfy the below event generation code
var newevent = document.createEvent("Event");
newevent.initEvent("fly", true, true);
this.dispatchEvent(newevent);
where this points to the element currently selected.
Note: there is something wrong with my SO editor right now, as I cannot see the tools to format, or preview. Will format once it is working.
You would use
.trigger():But I’m not sure if it also triggers event handlers that are not bound via jQuery.