.mouseenter()

Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. This method is a shortcut for .on( "mouseenter", handler ) in the first two variations, and .trigger( "mouseenter" ) in the third. The mouseenter JavaScript event is proprietary to Internet Explorer. Because of the event's general utility, jQuery simulates this event so that it can be used regardless of browser. This event is sent to an element w

: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

.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

: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

.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

.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

.live()

Attach an event handler for all elements which match the current selector, now and in the future. As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live(). This method provides a means to attach delegated event handlers to the document element of a page, which simplifies the use of event handlers when content is dynamically added to a page.

.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