.closest()

For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. Given a jQuery object that represents a set of DOM elements, the .closest() method searches through these elements and their ancestors in the DOM tree and constructs a new jQuery object from the matching elements. The .parents() and .closest() methods are similar in that they both traverse

Class selector (“.class”)

Selects all elements with the given class. For class selectors, jQuery uses JavaScript's native getElementsByClassName() function if the browser supports it. jQuery( ".class" ) version added: 1.0 Examples: Finds the element with the class "myClass". <!doctype html>

:checkbox selector

Selects all elements of type checkbox. $( ":checkbox" ) is equivalent to $( "[type=checkbox]" ). As with other pseudo-class selectors (those that begin with a ":") it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ("*") is implied. In other words, the bare $(':checkbox') is equivalent to $( "*:checkbox" ), so $( "input:checkbox" ) should be used instead. Because :checkbox is a jQuery extension

.click()

Bind an event handler to the "click" JavaScript event, or trigger that event on an element. This method is a shortcut for .on( "click", handler ) in the first two variations, and .trigger( "click" ) in the third. The click event is sent to an element when the mouse pointer is over the element, and the mouse button is pressed and released. Any HTML element can receive this event. For example, consider the HTML: <div id="target"> Click here <

callbacks.remove()

Remove a callback or a collection of callbacks from a callback list. This method returns the Callbacks object onto which it is attached (this). callbacks.remove( callbacks ) version added: 1.7 callbacks Function() or Array A function, or array of funct

callbacks.disabled()

Determine if the callbacks list has been disabled. callbacks.disabled() version added: 1.7 This method does not accept any arguments. Examples: Use callbacks.disabled() to determine if th

callbacks.fired()

Determine if the callbacks have already been called at least once. callbacks.fired() version added: 1.7 This method does not accept any arguments. Examples: Use callbacks.fired() to deter

callbacks.locked()

Determine if the callbacks list has been locked. callbacks.locked() version added: 1.7 This method does not accept any arguments. Examples: Use callbacks.locked() to determine the lock-st

callbacks.disable()

Disable a callback list from doing anything more. This method returns the Callbacks object onto which it is attached (this). callbacks.disable() version added: 1.7 This method does not accept any arguments.

.change()

Bind an event handler to the "change" JavaScript event, or trigger that event on an element. This method is a shortcut for .on( "change", handler ) in the first two variations, and .trigger( "change" ) in the third. The change event is sent to an element when its value changes. This event is limited to <input> elements, <textarea> boxes and <select> elements. For select boxes, checkboxes, and radio buttons, the event is fired immedia