Created by: rohit2sharma95
The .on()
and .trigger()
methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods.
Event aliases like .click()
will likely never be removed, but jQuery encourages the use of alternatives.