jQuery()

Accepts a string containing a CSS selector which is then used to match a set of elements. In the first formulation listed above, jQuery() â which can also be written as $() â searches through the DOM for any elements that match the provided selector and creates a new jQuery object that references these elements: $( "div.foo" ); If no elements match the provided selector, the new jQuery object is "empty"; that is, it contains no elements and has .lengt

Button

Themeable buttons. Button enhances standard form elements like buttons, inputs and anchors to themeable buttons with appropriate hover and active styles. In addition to basic push buttons, radio buttons and checkboxes (inputs of type radio and checkbox) can be converted to buttons. Their associated label is styled to appear as the button, while the underlying input is updated on click. For the association to work properly, give the input an id attribu

.width()

Get the current computed width for the first element in the set of matched elements. The difference between .css(width) and .width() is that the latter returns a unit-less pixel value (for example, 400) while the former returns a value with units intact (for example, 400px). The .width() method is recommended when an element's width needs to be used in a mathematical calculation. figure 1 This method is also able to find the width of the window and d

deferred.then()

Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. Prior to jQuery 1.8, the arguments could be a function or an array of functions. For all signatures, the arguments can be null if no callback of that type is desired. Alternatively, use .done(), .fail() or .progress() to set only one type of callback without filtering status or values. As of jQuery 1.8, the deferred.then() method returns a new promise that

jQuery.cssHooks

Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties. The $.cssHooks object provides a way to define functions for getting and setting particular CSS values. It can also be used to create new cssHooks for normalizing CSS3 features such as box shadows and gradients. For example, some versions of Webkit-based browsers require -webkit-border-radius to set the

.toggle()

Bind two or more handlers to the matched elements, to be executed on alternate clicks. Note: This method signature was deprecated in jQuery 1.8 and removed in jQuery 1.9. jQuery also provides an animation method named .toggle() that toggles the visibility of elements. Whether the animation or the event method is fired depends on the set of arguments passed. The .toggle() method binds a handler for the click event, so the rules outlined for the trigg

Buttonset

Themeable button sets. .buttonset() is bundled with .button(). Although they are separate widgets, they are combined into a single file. If you have .button() available, you also have .buttonset() available. A button set provides a visual grouping for related buttons. It is recommended that a button set be used whenever you have a group of related buttons. Button sets work by selecting all appropriate descendants and applying .button() to them. You

pageload event

Triggered after the page is successfully loaded and inserted into the DOM. Note: The triggering of this event is deprecated as of jQuery Mobile 1.4.0. It will no longer be triggered in 1.6.0. The replacement for pageload is the pagecontainer widget's pagecontainerload event. In jQuery Mobile 1.4.0, the two events are identical except for their name and the fact that pagecontainerload is triggered on the pagecontainer, whereas pageload is trigg

jQuery.get()

Load data from the server using a HTTP GET request. This is a shorthand Ajax function, which is equivalent to: $.ajax({ url: url, data: data, success: success, dataType: dataType }); The success callback function is passed the returned data, which will be an XML root element, text string, JavaScript file, or JSON object, depending on the MIME type of the response. It is also passed the text status of the response. As of jQuery 1.5, the succes

vclick event

Virtualized click event handler. We provide a set of "virtual" mouse events that attempt to abstract away mouse and touch events. This allows the developer to register listeners for the basic mouse events, such as mousedown, mousemove, mouseup, and click, and the plugin will take care of registering the correct listeners behind the scenes to invoke the listener at the fastest possible time for that device. In touch environments, the plugin reta