on
.on(evtNames,fn)
evtNamesOne or more space-separated event types
fnA function to execute when the event is triggered
Attach an event handler function for one or more events to the element
.on(evtNames,fn)
evtNamesOne or more space-separated event types
fnA function to execute when the event is triggered
Attach an event handler function for one or more events to the element
.off(evtNames,fn)
evtNamesOne or more space-separated event types
fnA handler function previously attached for the event(s)
Remove an event handler.
.trigger(evtName, options)
evtNameA string containing a JavaScript event type, such as click or submit.
optionsAdditional parameters to pass along to the event handler.
Execute all handlers and behaviors attached to the matched elements for the given event type.