Triggers a native JavaScript event. For example:
$("a.action").dispatch("click");
sends a click to a.action
. Like $.trigger,
but this will fire non-jQuery event handlers as well.
You can add an optional dict as the second parameter. It can have any event properties as attributes. For example:
$("a.action").dispatch("click", { bubbles: true, cancelable: false });
new Event()
options will also work