.map()

Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. If you wish to process a plain array or object, use the jQuery.map() instead. As the return value is a jQuery object, which contains an array, it's very common to call .get() on the result to work with a basic array. The .map() method is particularly useful for getting or setting the value of a collection of elements. Consider

:last-of-type selector

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

.length

The number of elements in the jQuery object. The number of elements currently matched. The .size() method will return the same value. length version added: 1.0 Examples: Count the divs. Click to add more. <!doctype html> <html lang="en"> <head> <me

.last()

Reduce the set of matched elements to the final one in the set. Given a jQuery object that represents a set of DOM elements, the .last() method constructs a new jQuery object from the last 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 ca

:lang() selector

Selects all elements of the specified language. The :lang() selector matches elements that have a language value equal to the supplied language code or that start with the supplied language code immediately followed by "-". For example, the selector $("div:lang(en)")will match <div lang="en"> and <div lang="en-us"> (and any of their descendant <div>s), but not <div lang="fr"> For HTML elements, the language value is determined

.keyup()

Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element. This method is a shortcut for .on( "keyup", handler ) in the first two variations, and .trigger( "keyup" ) in the third. The keyup event is sent to an element when the user releases a key on the keyboard. It can be attached to any element, but the event is only sent to the element that has the focus. Focusable elements can vary between browsers, but form elemen

:last-child selector

Selects all elements that are the last child of their parent. While :last matches only a single element, :last-child can match more than one: one for each parent. jQuery( ":last-child" ) version added: 1.1.4 Examples: Find the last span in each matched div and add some css plus a hover state

.keypress()

Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element. Note: as the keypress event isn't covered by any official specification, the actual behavior encountered when using it may differ across browsers, browser versions, and platforms. This method is a shortcut for .on( "keypress", handler ) in the first two variations, and .trigger( "keypress" ) in the third. The keypress event is sent to an element when the bro

.load()

Load data from the server and place the returned HTML into the matched element. Note: The event handling suite also has a method named .load(). jQuery determines which method to fire based on the set of arguments passed to it. This method is the simplest way to fetch data from the server. It is roughly equivalent to $.get(url, data, success) except that it is a method rather than global function and it has an implicit callback function. When a succe

.keydown()

Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element. This method is a shortcut for .on( "keydown", handler ) in the first and second variations, and .trigger( "keydown" ) in the third. The keydown event is sent to an element when the user first presses a key on the keyboard. It can be attached to any element, but the event is only sent to the element that has the focus. Focusable elements can vary between brows