Anda di halaman 1dari 35

jQuery API

.add() Miscellaneous Traversing Add elements to the set of matched elements.

.addClass() Attributes, Class Attribute, CSS Adds the specified class(es) to each of the set of matched elements.

.after() DOM Insertion, Outside Insert content, specified by the parameter, after each element in the set of matched elements.

jQuery.ajax() Low-Level Interface Perform an asynchronous HTTP (Ajax) request.

.ajaxComplete() Global Ajax Event Handlers Register a handler to be called when Ajax requests complete. This is an Ajax Event.

.ajaxError() Global Ajax Event Handlers Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.

jQuery.ajaxPrefilter() Low-Level Interface Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().

.ajaxSend() Global Ajax Event Handlers Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.

jQuery.ajaxSetup() Low-Level Interface Set default values for future Ajax requests.

.ajaxStart() Global Ajax Event Handlers Register a handler to be called when the first Ajax request begins. This is an Ajax Event.

.ajaxStop() Global Ajax Event Handlers Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.

.ajaxSuccess() Global Ajax Event Handlers Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.

All Selector ("*") Basic Selects all elements.

.andSelf() Miscellaneous Traversing Add the previous set of elements on the stack to the current set.

.animate() Custom Perform a custom animation of a set of CSS properties.

:animated Selector Basic Filter, jQuery Extensions Select all elements that are in the progress of an animation at the time the selector is run.

.append() DOM Insertion, Inside

Insert content, specified by the parameter, to the end of each element in the set of matched elements.

.appendTo() DOM Insertion, Inside Insert every element in the set of matched elements to the end of the target.

.attr() Attributes, General Attributes Get the value of an attribute for the first element in the set of matched elements.

Attribute Contains Prefix Selector [name|="value"] Attribute Selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-).

Attribute Contains Selector [name*="value"] Attribute Selects elements that have the specified attribute with a value containing the a given substring.

Attribute Contains Word Selector [name~="value"] Attribute Selects elements that have the specified attribute with a value containing a given word, delimited by spaces.

Attribute Ends With Selector [name$="value"] Attribute Selects elements that have the specified attribute with a value ending exactly with a given string. The comparison is case sensitive.

Attribute Equals Selector [name="value"] Attribute Selects elements that have the specified attribute with a value exactly equal to a certain value.

Attribute Not Equal Selector [name!="value"] Attribute, jQuery Extensions

Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.

Attribute Starts With Selector [name^="value"] Attribute Selects elements that have the specified attribute with a value beginning exactly with a given string.

.before() DOM Insertion, Outside Insert content, specified by the parameter, before each element in the set of matched elements.

.bind() Event Handler Attachment Attach a handler to an event for the elements.

.blur() Form Events, Forms Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.

jQuery.boxModel Utilities Deprecated in jQuery 1.3 (see jQuery.support). States if the current page, in the user's browser, is being rendered using the W3C CSS Box Model.

jQuery.browser Properties of the Global jQuery Object, Utilities Contains flags for the useragent, read from navigator.userAgent. We recommend against using this property; please try to use feature detection instead (see jQuery.support). jQuery.browser may be moved to a plugin in a future release of jQuery.

:button Selector Form, jQuery Extensions Selects all button elements and elements of type button.

.change() Form Events, Forms

Bind an event handler to the "change" JavaScript event, or trigger that event on an element.

:checkbox Selector Form, jQuery Extensions Selects all elements of type checkbox.

:checked Selector Form Matches all elements that are checked.

Child Selector ("parent > child") Hierarchy Selects all direct child elements specified by "child" of elements specified by "parent".

.children() Tree Traversal Get the children of each element in the set of matched elements, optionally filtered by a selector.

Class Selector (".class") Basic Selects all elements with the given class.

.clearQueue() Custom, Data, Utilities Remove from the queue all items that have not yet been run.

.click() Mouse Events Bind an event handler to the "click" JavaScript event, or trigger that event on an element.

.clone() Copying Create a deep copy of the set of matched elements.

.closest()

Tree Traversal Get the first element that matches the selector, beginning at the current element and progressing up through the DOM tree.

jQuery.contains() Utilities Check to see if a DOM element is within another DOM element.

:contains() Selector Content Filter Select all elements that contain the specified text.

.contents() Miscellaneous Traversing Get the children of each element in the set of matched elements, including text and comment nodes.

.context Internals, Properties of jQuery Object Instances The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document.

.css() CSS, Style Properties Get the value of a style property for the first element in the set of matched elements.

jQuery.cssHooks CSS Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.

.data() Data, Data Storage Store arbitrary data associated with the matched elements.

jQuery.data()

Data, Utilities Store arbitrary data associated with the specified element. Returns the value that was set.

.dblclick() Mouse Events Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.

deferred.always() Deferred Object Add handlers to be called when the Deferred object is either resolved or rejected.

deferred.done() Deferred Object Add handlers to be called when the Deferred object is resolved.

deferred.fail() Deferred Object Add handlers to be called when the Deferred object is rejected.

deferred.isRejected() Deferred Object Determine whether a Deferred object has been rejected.

deferred.isResolved() Deferred Object Determine whether a Deferred object has been resolved.

deferred.pipe() Deferred Object Utility method to filter and/or chain Deferreds.

deferred.promise() Deferred Object Return a Deferred's Promise object.

deferred.reject() Deferred Object Reject a Deferred object and call any failCallbacks with the given args.

deferred.rejectWith() Deferred Object Reject a Deferred object and call any failCallbacks with the given context and args.

deferred.resolve() Deferred Object Resolve a Deferred object and call any doneCallbacks with the given args.

deferred.resolveWith() Deferred Object Resolve a Deferred object and call any doneCallbacks with the given context and args.

deferred.then() Deferred Object Add handlers to be called when the Deferred object is resolved or rejected.

.delay() Custom Set a timer to delay execution of subsequent items in the queue.

.delegate() Event Handler Attachment Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements.

.dequeue() Custom, Data, Utilities Execute the next function on the queue for the matched elements.

jQuery.dequeue()

Data, Utilities Execute the next function on the queue for the matched element.

Descendant Selector ("ancestor descendant") Hierarchy Selects all elements that are descendants of a given ancestor.

.detach() DOM Removal Remove the set of matched elements from the DOM.

.die() Event Handler Attachment Remove all event handlers previously attached using .live() from the elements.

:disabled Selector Form Selects all elements that are disabled.

jQuery.each() Utilities A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.

.each() Collection Manipulation, Traversing Iterate over a jQuery object, executing a function for each matched element.

Element Selector ("element") Basic Selects all elements with the given tag name.

.empty() DOM Removal

Remove all child nodes of the set of matched elements from the DOM.

:empty Selector Content Filter Select all elements that have no children (including text nodes).

:enabled Selector Form Selects all elements that are enabled.

.end() Miscellaneous Traversing End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.

.eq() Filtering Reduce the set of matched elements to the one at the specified index.

:eq() Selector Basic Filter, jQuery Extensions Select the element at index n within the matched set.

.error() Browser Events Bind an event handler to the "error" JavaScript event.

jQuery.error Internals Takes a string and throws an exception containing it.

:even Selector Basic Filter, jQuery Extensions Selects even elements, zero-indexed. See also odd.

event.currentTarget Event Object The current DOM element within the event bubbling phase.

event.data Event Object The optional data passed to jQuery.fn.bind when the current executing handler was bound.

event.isDefaultPrevented() Event Object Returns whether event.preventDefault() was ever called on this event object.

event.isImmediatePropagationStopped() Event Object Returns whether event.stopImmediatePropagation() was ever called on this event object.

event.isPropagationStopped() Event Object Returns whether event.stopPropagation() was ever called on this event object.

event.namespace Event Object The namespace specified when the event was triggered.

event.pageX Event Object The mouse position relative to the left edge of the document.

event.pageY Event Object The mouse position relative to the top edge of the document.

event.preventDefault() Event Object

If this method is called, the default action of the event will not be triggered.

event.relatedTarget Event Object The other DOM element involved in the event, if any.

event.result Event Object The last value returned by an event handler that was triggered by this event, unless the value was undefined.

event.stopImmediatePropagation() Event Object Prevents other event handlers from being called.

event.stopPropagation() Event Object Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.

event.target Event Object The DOM element that initiated the event.

event.timeStamp Event Object The difference in milliseconds between the time an event is triggered and January 1, 1970.

event.type Event Object Describes the nature of the event.

event.which Event Object For key or button events, this attribute indicates the specific button or key that was pressed.

jQuery.extend() Utilities Merge the contents of two or more objects together into the first object.

.fadeIn() Fading Display the matched elements by fading them to opaque.

.fadeOut() Fading Hide the matched elements by fading them to transparent.

.fadeTo() Fading Adjust the opacity of the matched elements.

.fadeToggle() Effects, Fading Display or hide the matched elements by animating their opacity.

:file Selector Form, jQuery Extensions Selects all elements of type file.

.filter() Filtering Reduce the set of matched elements to those that match the selector or pass the function's test.

.find() Tree Traversal Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

.first()

Filtering Reduce the set of matched elements to the first in the set.

:first-child Selector Child Filter Selects all elements that are the first child of their parent.

:first Selector Basic Filter, jQuery Extensions Selects the first matched element.

.focus() Form Events, Forms Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.

:focus selector Basic Filter, Form Selects element if it is currently focused.

.focusin() Keyboard Events, Mouse Events Bind an event handler to the "focusin" JavaScript event.

.focusout() Keyboard Events, Mouse Events Bind an event handler to the "focusout" JavaScript event.

jQuery.fx.interval Custom, Properties of the Global jQuery Object The rate (in milliseconds) at which animations fire.

jQuery.fx.off Custom, Properties of the Global jQuery Object Globally disable all animations.

jQuery.get() Shorthand Methods Load data from the server using a HTTP GET request.

.get() DOM Element Methods Retrieve the DOM elements matched by the jQuery object.

jQuery.getJSON() Shorthand Methods Load JSON-encoded data from the server using a GET HTTP request.

jQuery.getScript() Shorthand Methods Load a JavaScript file from the server using a GET HTTP request, then execute it.

jQuery.globalEval() Utilities Execute some JavaScript code globally.

jQuery.grep() Utilities Finds the elements of an array which satisfy a filter function. The original array is not affected.

:gt() Selector Basic Filter, jQuery Extensions Select all elements at an index greater than index within the matched set.

.has() Filtering Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.

Has Attribute Selector [name]

Attribute Selects elements that have the specified attribute, with any value.

:has() Selector Content Filter, jQuery Extensions Selects elements which contain at least one element that matches the specified selector.

.hasClass() Attributes, Class Attribute, CSS Determine whether any of the matched elements are assigned the given class.

jQuery.hasData() Data Determine whether an element has any jQuery data associated with it.

:header Selector Basic Filter, jQuery Extensions Selects all elements that are headers, like h1, h2, h3 and so on.

.height() CSS, Dimensions, Style Properties Get the current computed height for the first element in the set of matched elements.

:hidden Selector jQuery Extensions, Visibility Filter Selects all elements that are hidden.

.hide() Basics Hide the matched elements.

jQuery.holdReady() Core Holds or releases the execution of jQuery's ready event.

.hover() Mouse Events Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.

.html() Attributes, DOM Insertion, Inside Get the HTML contents of the first element in the set of matched elements.

ID Selector ("#id") Basic Selects a single element with the given id attribute.

:image Selector Form, jQuery Extensions Selects all elements of type image.

jQuery.inArray() Utilities Search for a specified value within an array and return its index (or -1 if not found).

.index() DOM Element Methods Search for a given element from among the matched elements.

.innerHeight() CSS, Dimensions, Style Properties Get the current computed height for the first element in the set of matched elements, including padding but not border.

.innerWidth() CSS, Dimensions, Style Properties Get the current computed width for the first element in the set of matched elements, including padding but not border.

:input Selector Form, jQuery Extensions Selects all input, textarea, select and button elements.

.insertAfter() DOM Insertion, Outside Insert every element in the set of matched elements after the target.

.insertBefore() DOM Insertion, Outside Insert every element in the set of matched elements before the target.

.is() Filtering Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.

jQuery.isArray() Utilities Determine whether the argument is an array.

jQuery.isEmptyObject() Utilities Check to see if an object is empty (contains no properties).

jQuery.isFunction() Utilities Determine if the argument passed is a Javascript function object.

jQuery.isNumeric() Utilities Determines whether its argument is a number.

jQuery.isPlainObject()

Utilities Check to see if an object is a plain object (created using "{}" or "new Object").

jQuery.isWindow() Utilities Determine whether the argument is a window.

jQuery.isXMLDoc() Utilities Check to see if a DOM node is within an XML document (or is an XML document).

jQuery() Core Accepts a string containing a CSS selector which is then used to match a set of elements.

.jquery Internals, Properties of jQuery Object Instances A string containing the jQuery version number.

.keydown() Keyboard Events Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.

.keypress() Keyboard Events Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.

.keyup() Keyboard Events Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.

.last() Filtering Reduce the set of matched elements to the final one in the set.

:last-child Selector Child Filter Selects all elements that are the last child of their parent.

:last Selector Basic Filter, jQuery Extensions Selects the last matched element.

.length Properties of jQuery Object Instances The number of elements in the jQuery object.

.live() Event Handler Attachment Attach a handler to the event for all elements which match the current selector, now and in the future.

.load() Shorthand Methods Load data from the server and place the returned HTML into the matched element.

.load() Document Loading Bind an event handler to the "load" JavaScript event.

:lt() Selector Basic Filter, jQuery Extensions Select all elements at an index less than index within the matched set.

jQuery.makeArray() Utilities Convert an array-like object into a true JavaScript array.

.map() Filtering

Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.

jQuery.map() Utilities Translate all items in an array or object to new array of items.

jQuery.merge() Utilities Merge the contents of two arrays together into the first array.

.mousedown() Mouse Events Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.

.mouseenter() Mouse Events Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.

.mouseleave() Mouse Events Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.

.mousemove() Mouse Events Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.

.mouseout() Mouse Events Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.

.mouseover() Mouse Events Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.

.mouseup() Mouse Events Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.

Multiple Attribute Selector [name="value"][name2="value2"] Attribute Matches elements that match all of the specified attribute filters.

Multiple Selector ("selector1, selector2, selectorN") Basic Selects the combined results of all the specified selectors.

.next() Tree Traversal Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.

Next Adjacent Selector ("prev + next") Hierarchy Selects all next elements matching "next" that are immediately preceded by a sibling "prev".

Next Siblings Selector ("prev ~ siblings") Hierarchy Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector.

.nextAll() Tree Traversal Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.

.nextUntil() Tree Traversal Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.

jQuery.noConflict() Core, Setup Methods Relinquish jQuery's control of the $ variable.

jQuery.noop() Utilities An empty function.

.not() Filtering, Miscellaneous Traversing Remove elements from the set of matched elements.

:not() Selector Basic Filter Selects all elements that do not match the given selector.

jQuery.now() Utilities Return a number representing the current time.

:nth-child() Selector Child Filter Selects all elements that are the nth-child of their parent.

:odd Selector Basic Filter, jQuery Extensions Selects odd elements, zero-indexed. See also even.

.offset() CSS, Offset, Style Properties Get the current coordinates of the first element in the set of matched elements, relative to the document.

.offsetParent() Offset, Tree Traversal

Get the closest ancestor element that is positioned.

.one() Event Handler Attachment Attach a handler to an event for the elements. The handler is executed at most once per element.

:only-child Selector Child Filter Selects all elements that are the only child of their parent.

.outerHeight() CSS, Dimensions, Style Properties Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin.

.outerWidth() CSS, Dimensions, Style Properties Get the current computed width for the first element in the set of matched elements, including padding and border.

jQuery.param() Collection Manipulation, Forms, Helper Functions Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.

.parent() Tree Traversal Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

:parent Selector Content Filter, jQuery Extensions Select all elements that are the parent of another element, including text nodes.

.parents() Tree Traversal Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.

.parentsUntil() Tree Traversal Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.

jQuery.parseJSON Utilities Takes a well-formed JSON string and returns the resulting JavaScript object.

jQuery.parseXML() Utilities Parses a string into an XML document.

:password Selector Form, jQuery Extensions Selects all elements of type password.

.position() CSS, Offset, Style Properties Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.

jQuery.post() Shorthand Methods Load data from the server using a HTTP POST request.

.prepend() DOM Insertion, Inside Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

.prependTo() DOM Insertion, Inside Insert every element in the set of matched elements to the beginning of the target.

.prev()

Tree Traversal Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector.

.prevAll() Tree Traversal Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.

.prevUntil() Tree Traversal Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

.promise() Deferred Object Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.

.prop() Attributes, General Attributes Get the value of a property for the first element in the set of matched elements.

jQuery.proxy() Event Handler Attachment, Utilities Takes a function and returns a new one that will always have a particular context.

.pushStack() Internals Add a collection of DOM elements onto the jQuery stack.

.queue() Custom, Data, Utilities Show the queue of functions to be executed on the matched elements.

jQuery.queue()

Data, Utilities Show the queue of functions to be executed on the matched element.

:radio Selector Form, jQuery Extensions Selects all elements of type radio.

.ready() Document Loading Specify a function to execute when the DOM is fully loaded.

.remove() DOM Removal Remove the set of matched elements from the DOM.

.removeAttr() Attributes, General Attributes Remove an attribute from each element in the set of matched elements.

.removeClass() Attributes, Class Attribute, CSS Remove a single class, multiple classes, or all classes from each element in the set of matched elements.

.removeData() Data, Data Storage Remove a previously-stored piece of data.

jQuery.removeData() Data, Utilities Remove a previously-stored piece of data.

.removeProp() Attributes, General Attributes Remove a property for the set of matched elements.

.replaceAll() DOM Replacement Replace each target element with the set of matched elements.

.replaceWith() DOM Replacement Replace each element in the set of matched elements with the provided new content.

:reset Selector Form, jQuery Extensions Selects all elements of type reset.

.resize() Browser Events Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.

.scroll() Browser Events Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.

.scrollLeft() CSS, Offset, Style Properties Get the current horizontal position of the scroll bar for the first element in the set of matched elements.

.scrollTop() CSS, Offset, Style Properties Get the current vertical position of the scroll bar for the first element in the set of matched elements.

.select() Form Events, Forms Bind an event handler to the "select" JavaScript event, or trigger that event on an element.

:selected Selector Form, jQuery Extensions

Selects all elements that are selected.

.serialize() Forms, Helper Functions Encode a set of form elements as a string for submission.

.serializeArray() Forms, Helper Functions Encode a set of form elements as an array of names and values.

.show() Basics Display the matched elements.

.siblings() Tree Traversal Get the siblings of each element in the set of matched elements, optionally filtered by a selector.

.size() DOM Element Methods Return the number of elements in the jQuery object.

.slice() Filtering Reduce the set of matched elements to a subset specified by a range of indices.

.slideDown() Sliding Display the matched elements with a sliding motion.

.slideToggle() Sliding Display or hide the matched elements with a sliding motion.

.slideUp()

Sliding Hide the matched elements with a sliding motion.

.stop() Custom Stop the currently-running animation on the matched elements.

jQuery.sub() Core Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object.

.submit() Form Events, Forms Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.

:submit Selector Form, jQuery Extensions Selects all elements of type submit.

jQuery.support Properties of the Global jQuery Object, Utilities A collection of properties that represent the presence of different browser features or bugs.

.text() DOM Insertion, Inside Get the combined text contents of each element in the set of matched elements, including their descendants.

:text Selector Form, jQuery Extensions Selects all elements of type text.

.toArray() DOM Element Methods

Retrieve all the DOM elements contained in the jQuery set, as an array.

.toggle() Basics Display or hide the matched elements.

.toggle() Mouse Events Bind two or more handlers to the matched elements, to be executed on alternate clicks.

.toggleClass() Attributes, Class Attribute, CSS Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.

.trigger() Event Handler Attachment Execute all handlers and behaviors attached to the matched elements for the given event type.

.triggerHandler() Event Handler Attachment Execute all handlers attached to an element for an event.

jQuery.trim() Utilities Remove the whitespace from the beginning and end of a string.

jQuery.type() Utilities Determine the internal JavaScript [[Class]] of an object.

.unbind() Event Handler Attachment Remove a previously-attached event handler from the elements.

.undelegate() Event Handler Attachment Remove a handler from the event for all elements which match the current selector, now or in the future, based upon a specific set of root elements.

jQuery.unique() Utilities Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.

.unload() Document Loading Bind an event handler to the "unload" JavaScript event.

.unwrap() DOM Insertion, Around, DOM Removal Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.

.val() Attributes, Forms, General Attributes Get the current value of the first element in the set of matched elements.

:visible Selector jQuery Extensions, Visibility Filter Selects all elements that are visible.

jQuery.when() Core, Deferred Object Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events.

.width() CSS, Dimensions, Style Properties Get the current computed width for the first element in the set of matched elements.

.wrap() DOM Insertion, Around Wrap an HTML structure around each element in the set of matched elements.

.wrapAll() DOM Insertion, Around Wrap an HTML structure around all elements in the set of matched elements.

.wrapInner() DOM Insertion, Around Wrap an HTML structure around the content of each element in the set of matched elements. Plugins

jQuery.tmpl() BetaTemplates Render the specified HTML content as a template, using the specified data.

jQuery.tmplItem() BetaTemplates Return the tmplItem data structure for the rendered template that the specified element is part of.

.link() BetaData Link Link changes to the matched elements to an object.

.template() BetaTemplates Compile the contents of the matched element as a reusable compiled template.

jQuery.template() BetaTemplates Create a reusable named template (compiled from markup).

{{each}} Template Tag

BetaTemplate Tags Used to iterate over a data array, and render the content between the opening and closing template tags once for each data item.

{{else}} Template Tag BetaTemplate Tags Used in association with the {{if}}...{{/if}} tag to provide alternative content based on the values of one or more expressions. The {{else}} tag can be used without a parameter, as in: {{if a}}...{{else}}...{{/if}}, or with a parameter, as in: {{if a}}...{{else b}}...{{/if}}.

${} Template Tag BetaTemplate Tags Used for insertion of data values in the rendered template. Evaluates the specified field (property) on the current data item, or the specified JavaScript function or expression.

{{html}} Template Tag BetaTemplate Tags Used for insertion of HTML markup strings in the rendered template. Evaluates the specified field on the current data item, or the specified JavaScript function or expression.

{{if}} Template Tag BetaTemplate Tags Used for conditional insertion of content. Renders the content between the opening and closing template tags only if the specified data item field, JavaScript function or expression does not evaluate to false (or to zero, null, type "undefined", or the empty string ).

{{tmpl}} Template Tag BetaTemplate Tags Used for composition of templates. Renders one or more nested template items within the rendered output of the parent template.

{{wrap}} Template Tag BetaTemplate Tags Used for composition of templates which incorporate wrapped HTML content. Rendered template items can combine wrapped HTML content with template markup.

.tmpl()

Templates Take the first element in the matched set and render its content as a template, using the specified data.

.tmplItem() BetaTemplates Return the tmplItem data structure for the rendered template that the matched element is part of.

.unlink() BetaData Link Remove a previously created link.

Anda mungkin juga menyukai