:focus selector

Selects element if it is currently focused. As with other pseudo-class selectors (those that begin with a ":"), it is recommended to precede :focus with a tag name or some other selector; otherwise, the universal selector ( "*" ) is implied. In other words, the bare $( ":focus" ) is equivalent to $( "*:focus" ). If you are looking for the currently focused element, $( document.activeElement ) will retrieve it without having to search the whole DOM tre

.first()

Reduce the set of matched elements to the first in the set. Given a jQuery object that represents a set of DOM elements, the .first() method constructs a new jQuery object from the first element in that set. Consider a page with a simple list on it: <ul> <li>list item 1</li> <li>list item 2</li> <li>list item 3</li> <li>list item 4</li> <li>list item 5</li> </ul> We can

.has()

Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. Given a jQuery object that represents a set of DOM elements, the .has() method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against the descendants of the matching elements; the element will be included in the result if any of its descendant elements matches the selector. Consider a page

:first-of-type selector

Selects all elements that are the first among siblings of the same element name. The :first-of-type selector matches elements that have no other element with both the same parent and the same element name coming before it in the document tree. jQuery( ":first-of-type" ) version added: 1.9 Examples:

:first selector

Selects the first matched element. The :first pseudo-class is equivalent to :eq( 0 ). It could also be written as :lt( 1 ). While this matches only a single element, :first-child can match more than one: One for each parent. Because :first is a jQuery extension and not part of the CSS specification, queries using :first cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. To achieve the best performance

:first-child selector

Selects all elements that are the first child of their parent. While :first matches only a single element, the :first-child selector can match more than one: one for each parent. This is equivalent to :nth-child(1). jQuery( ":first-child" ) version added: 1.1.4 Examples: Finds the first span

.finish()

Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements. When .finish() is called on an element, the currently-running animation and all queued animations (if any) immediately stop and their CSS properties set to their target values. All queued animations are removed. If the first argument is provided, only the animations in the queue represented by that string will be stopped. The .fini

.focus()

Bind an event handler to the "focus" JavaScript event, or trigger that event on an element. This method is a shortcut for .on( "focus", handler ) in the first and second variations, and .trigger( "focus" ) in the third. The focus event is sent to an element when it gains focus. This event is implicitly applicable to a limited set of elements, such as form elements (<input>, <select>, etc.) and links (<a href>). In recent browser vers

.focusin()

Bind an event handler to the "focusin" event. This method is a shortcut for .on( "focusin", handler ) in the first two variations, and .trigger( "focusin" ) in the third. The focusin event is sent to an element when it, or any element inside of it, gains focus. This is distinct from the focus event in that it supports detecting the focus event on parent elements (in other words, it supports event bubbling). This event will likely be used together with

.find()

Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. Given a jQuery object that represents a set of DOM elements, the .find() method allows us to search through the descendants of these elements in the DOM tree and construct a new jQuery object from the matching elements. The .find() and .children() methods are similar, except that the latter only travels a single level down the