.trigger() vs .triggerHandler() vs .simulate()
Reading the jQuery tutotial on triggering events there seems to be some misunderstanding, and I quote:
- "
.trigger()
function cannot be used to mimic native browser events, such as clicking on a file input box or an anchor tag."
- "There are four differences between
.trigger()
and .triggerHandler()
....... .triggerHandler()
will not cause the default behavior of the event (such as a form submission)."
Aren't these 2 quotes in contradiction? Isn't form submission an example of "following a native browser event", just like following an anchor upon clicking?