.filter()

Reduce the set of matched elements to those that match the selector or pass the function's test. Given a jQuery object that represents a set of DOM elements, the .filter() method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against each element; all elements matching the selector will be included in the result. Consider a page with a simple list on it: <ul> <li>list item 1</li&

event.target

The DOM element that initiated the event. The target property can be the element that registered for the event or a descendant of it. It is often useful to compare event.target to this in order to determine if the event is being handled due to event bubbling. This property is very useful in event delegation, when events bubble. event.target version added: 1.0

event.namespace

The namespace specified when the event was triggered. This will likely be used primarily by plugin authors who wish to handle tasks differently depending on the event namespace used. event.namespace version added: 1.4.3 Examples: Determine the event namespace used. <!

event.result

The last value returned by an event handler that was triggered by this event, unless the value was undefined. This property can be useful for getting previous return values of custom events. event.result version added: 1.3 Examples: Display previous handler's return value

event.relatedTarget

The other DOM element involved in the event, if any. For mouseout, indicates the element being entered; for mouseover, indicates the element being exited. event.relatedTarget version added: 1.1.4 Examples: On mouseout of anchors, alert the element type being entered. $(

event.metaKey

Indicates whether the META key was pressed when the event fired. Returns a boolean value (true or false) that indicates whether or not the META key was pressed at the time the event fired. This key might map to an alternative key name on some platforms. On Macintosh keyboards, the META key maps to the Command key (รข). On Windows keyboards, the META key maps to the Windows key. event.metaKey

event.pageY

The mouse position relative to the top edge of the document. event.pageY version added: 1.0.4 Examples: Show the mouse position relative to the left and top edges of the document (within this iframe). <!doctype html> <html lang="en"> <head> <meta charset="utf

event.isPropagationStopped()

Returns whether event.stopPropagation() was ever called on this event object. This event method is described in the W3C DOM Level 3 specification. event.isPropagationStopped() version added: 1.3 This method does not accept any arguments.

event.pageX

The mouse position relative to the left edge of the document. event.pageX version added: 1.0.4 Examples: Show the mouse position relative to the left and top edges of the document (within this iframe). <!doctype html> <html lang="en"> <head> <meta charset="ut

event.preventDefault()

If this method is called, the default action of the event will not be triggered. For example, clicked anchors will not take the browser to a new URL. We can use event.isDefaultPrevented() to determine if this method has been called by an event handler that was triggered by this event. event.preventDefault() version added: 1.0