callbacks.lock()

Lock a callback list in its current state. This method returns the Callbacks object onto which it is attached (this). If the Callbacks object is created with the "memory" flag as its argument, additional functions may be added and fired after the callback list is locked. callbacks.lock() version added: 1.7 This method does

Drop effect

The drop effect hides or shows an element fading in/out and sliding in a direction. drop direction (default: "left") String The direction the element will fall to hide the element, or the direction from which the element will be revealed. Possible Values: up, down, left, right.

Droppable

Create targets for draggable elements. The jQuery UI Droppable plugin makes selected elements droppable (meaning they accept being dropped on by draggables). You can specify which draggables each will accept. Dependencies UI Core Widget Factory Mouse Interaction accept Type: Selector or Function() Default: "*" Controls which draggable elements are accepted by the droppable. Multiple types supported: Selector: A selec

Widget plugin bridge

Part of the jQuery Widget Factory is the jQuery.widget.bridge() method. This acts as the middleman between the object created by $.widget() and the jQuery API. $.widget.bridge() does a few things: Connects a regular JavaScript constructor to the jQuery API. Automatically creates instances of said object and stores it within the element's $.data cache. Allows calls to public methods. Prevents calls to private methods. Prevents method calls on uninitial

.outerHeight()

Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns a number (without "px") representation of the value or null if called on an empty set of elements. The top and bottom padding and border are always included in the .outerHeight() calculation; if the includeMargin argument is set to true, the margin (top and bottom) is also included. This method is not applicab

jQuery.proxy()

Takes a function and returns a new one that will always have a particular context. This method is most useful for attaching event handlers to an element where the context is pointing back to a different object. Additionally, jQuery makes sure that even if you bind the function returned from jQuery.proxy() it will still unbind the correct function if passed the original. Be aware, however, that jQuery's event binding subsystem assigns a unique id to ea

.position()

Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. The .position() method allows us to retrieve the current position of an element relative to the offset parent. Contrast this with .offset(), which retrieves the current position relative to the document. When positioning a new element near another one and within the same containing DOM element, .position() is the more useful. Returns an obje

: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

deferred.isRejected()

Determine whether a Deferred object has been rejected. As of jQuery 1.7 this API has been deprecated; please use deferred.state() instead. Returns true if the Deferred object is in the rejected state, meaning that either deferred.reject() or deferred.rejectWith() has been called for the object and the failCallbacks have been called (or are in the process of being called). Note that a Deferred object can be in one of three states: pending, resolved, or

.one()

Attach a handler to an event for the elements. The handler is executed at most once per element per event type. The .one() method is identical to .on(), except that the handler is unbound after its first invocation. For example: $( "#foo" ).one( "click", function() { alert( "This will be displayed only once." ); }); After the code is executed, a click on the element with ID foo will display the alert. Subsequent clicks will do nothing. This code is