Events
.hover( onMouseOver, onMouseOut )
Bind one or two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
onMouseOver: handler on mouse over
onMouseOut: handler on mouse out
$(selector).on("hover",onMouseOver,onMouseOut)
.on( eventNames, handler, once )
Attach a handler to an event for the elements.
eventNames: string or array
handler: function
once: boolean (default: false)
$(selector).on("click",handler)
.one( eventNames, handler )
Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
.off( eventNames, handler )
Remove an event handler.
.unbind( eventNames, handler )
Remove an event handler.
.trigger( eventNames )
Execute all handlers and behaviors attached to the matched elements for the given event types.
.submit( handler )
Bind an event handler to the “submit” JavaScript event, or trigger that event on an element.