====== Шпаргалка ====== ===== Селекторы ===== ==== Основные ==== | [[http://api.jquery.com/all-selector/|*]] | Все элементы | | [[http://api.jquery.com/class-selector/|.class]] | Все элементы у указанного класса | | [[http://api.jquery.com/element-selector/|element]] | Все элементы выбранного тега | | [[http://api.jquery.com/id-selector/|#id]] | Один элемент соответствующий указанному id | | [[http://api.jquery.com/multiple-selector/|selector1, selectorN, ...]] | Комбинированный результат всех указанных селекторов | ==== Иерархия ==== | [[http://api.jquery.com/child-selector/|parent > child]] | Находит всех прямых потомков элементов //'parent'// подходящие под условия //'child'// | | [[http://api.jquery.com/descendant-selector/|ancestor descendant]] | Находит все элементы //'descendant'// вложенные в //'ancestor'// | | [[http://api.jquery.com/next-adjacent-Selector/|prev + next]] | Selects all next elements matching 'next' that are immediately preceded by a sibling 'prev'. | | [[http://api.jquery.com/next-siblings-selector/|prev ~ siblings]] | Selects all sibling elements that follow after the 'prev' element, have the same parent, and match the filtering 'siblings' selector. | ==== Основные фильтры ==== | [[http://api.jquery.com/animated-selector/|:animated]] | Select all elements that are in the progress of an animation at the time the selector is run. | | [[http://api.jquery.com/eq-selector/|:eq()]] | Select the element at index n within the matched set. | | [[http://api.jquery.com/even-selector/|:even]] | Selects even elements, zero-indexed. See also odd. | | [[http://api.jquery.com/first-selector/|:first]] | Selects the first matched element. | | [[http://api.jquery.com/gt-selector/|:gt()]] | Select all elements at an index greater than index within the matched set. | | [[http://api.jquery.com/header-selector/|:header]] | Selects all elements that are headers, like h1, h2, h3 and so on. | | [[http://api.jquery.com/lang-selector/|:lang()]] | Selects all elements of the specified language. | | [[http://api.jquery.com/last-selector/|:last]] | Selects the last matched element. | | [[http://api.jquery.com/lt-selector/|:lt()]] | Select all elements at an index less than index within the matched set. | | [[http://api.jquery.com/not-selector/|:not()]] | Selects all elements that do not match the given selector. | | [[http://api.jquery.com/odd-selector/|:odd]] | Selects odd elements, zero-indexed. See also even. | | [[http://api.jquery.com/root-selector/|:root]] | Selects the element that is the root of the document. | | [[http://api.jquery.com/target-selector/|:target]] | Selects the target element indicated by the fragment identifier of the document's URI. | ====Content Filters==== * [[http://api.jquery.com/contains-selector/|:contains()]] Select all elements that contain the specified text. * [[http://api.jquery.com/empty-selector/|:empty]] Select all elements that have no children (including text nodes). * [[http://api.jquery.com/has-selector/|:has()]] Selects elements which contain at least one element that matches the specified selector. * [[http://api.jquery.com/parent-selector/|:parent]] Select all elements that are the parent of another element, including text nodes. ==== Фильтр видимости ==== | [[http://api.jquery.com/hidden-selector/|:hidden]] | Находит все скрытые элементы | | [[http://api.jquery.com/visible-selector/|:visible]] | Находит все видимые элементы | ==== Attribute ==== | [[http://api.jquery.com/attribute-contains-prefix-selector/|[name|="value"]]] | 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 (-). | | [[http://api.jquery.com/attribute-contains-selector/|[name*="value"]]] | Selects elements that have the specified attribute with a value containing the a given substring. | | [[http://api.jquery.com/attribute-contains-word-selector/|[name~="value"]]] | Selects elements that have the specified attribute with a value containing a given word, delimited by spaces. | | [[http://api.jquery.com/attribute-ends-with-selector/|[name$="value"]]] | Selects elements that have the specified attribute with a value ending exactly with a given string. The comparison is case sensitive. | | [[http://api.jquery.com/attribute-equals-selector/|[name="value"]]] | Selects elements that have the specified attribute with a value exactly equal to a certain value. | | [name!="value"] | [[http://api.jquery.com/attribute-not-equal-selector/|Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.]] | | [[http://api.jquery.com/attribute-starts-with-selector/|[name^="value"]]] | Selects elements that have the specified attribute with a value beginning exactly with a given string. | | [[http://api.jquery.com/has-attribute-selector/|[name]]] | Selects elements that have the specified attribute, with any value. | | [[http://api.jquery.com/multiple-attribute-selector/|[name="value"][name2="value2"]]] | Matches elements that match all of the specified attribute filters. | ====Child Filters==== | [[http://api.jquery.com/first-child-selector/|:first-child]] | Selects all elements that are the first child of their parent. | | [[http://api.jquery.com/first-of-type-selector/|:first-of-type]] | Selects all elements that are the first among siblings of the same element name. | | [[http://api.jquery.com/last-child-selector/|:last-child]] | Selects all elements that are the last child of their parent. | | [[http://api.jquery.com/last-of-type-selector/|:last-of-type]] | Selects all elements that are the last among siblings of the same element name. | | [[http://api.jquery.com/nth-child-selector/|:nth-child()]] | Selects all elements that are the nth-child of their parent. | | [[http://api.jquery.com/nth-last-child-selector/|:nth-last-child()]] | Selects all elements that are the nth-child of their parent, counting from the last element to the first. | | [[http://api.jquery.com/nth-last-of-type-selector/|:nth-last-of-type()]] | Selects all elements that are the nth-child of their parent, counting from the last element to the first. | | [[http://api.jquery.com/nth-of-type-selector/|:nth-of-type()]] | Selects all elements that are the nth child of their parent in relation to siblings with the same element name. | | [[http://api.jquery.com/only-child-selector/|:only-child]] | Selects all elements that are the only child of their parent. | | [[http://api.jquery.com/only-of-type-selector/|:only-of-type()]] | Selects all elements that have no siblings with the same element name. | ==== Формы ==== | [[http://api.jquery.com/button-selector/|:button]] | Находит все элементы button и те у которых свойство type=button | | [[http://api.jquery.com/checkbox-selector/|:checkbox]] | Находит все элементы у которых type=checkbox. | | [[http://api.jquery.com/checked-selector/|:checked]] | Находит все отмеченные элементы | | [[http://api.jquery.com/disabled-selector/|:disabled]] | Находит все элементы со статусом disabled | | [[http://api.jquery.com/enabled-selector/|:enabled]] | Находит все элементы со статусом enabled. | | [[http://api.jquery.com/focus-selector/|:focus]] | Находит элемент который в фокусе | | [[http://api.jquery.com/file-selector/|:file]] | Selects all elements of type file. | | [[http://api.jquery.com/image-selector/|:image]] | Selects all elements of type image. | | [[http://api.jquery.com/input-selector/|:input]] | Selects all input, textarea, select and button elements. | | [[http://api.jquery.com/password-selector/|:password]] | Selects all elements of type password. | | [[http://api.jquery.com/radio-selector/|:radio]] | Selects all elements of type radio. | | [[http://api.jquery.com/reset-selector/|:reset]] | Selects all elements of type reset. | | [[http://api.jquery.com/selected-selector/|:selected]] | Selects all elements that are selected. | | [[http://api.jquery.com/submit-selector/|:submit]] | Selects all elements of type submit. | | [[http://api.jquery.com/text-selector/|:text]] | Selects all elements of type text. | =====Attributes / CSS===== ====Attributes==== | [[http://api.jquery.com/attr/|.attr()]] | Get the value of an attribute for the first element in the set of matched elements. | | [[http://api.jquery.com/prop/|.prop()]] | Get the value of a property for the first element in the set of matched elements. | | [[http://api.jquery.com/removeAttr/|.removeAttr()]] | Remove an attribute from each element in the set of matched elements. | | [[http://api.jquery.com/removeProp/|.removeProp()]] | Remove a property for the set of matched elements. | | [[http://api.jquery.com/val/|.val()]] | Get the current value of the first element in the set of matched elements. | ====CSS==== | [[http://api.jquery.com/addClass/|.addClass()]] | Adds the specified class(es) to each of the set of matched elements. | | [[http://api.jquery.com/css/|.css()]] | Get the value of a style property for the first element in the set of matched elements. | | [[http://api.jquery.com/jQuery.cssHooks/|jQuery.cssHooks]] | Provides a way to hook directly into jQuery to override how particular CSS properties are retrieved or set. Amongst other uses, cssHooks can be used to create custom, browser-normalized properties for CSS3 features such as box-shadows and gradients. | | [[http://api.jquery.com/hasClass/|.hasClass()]] | Determine whether any of the matched elements are assigned the given class. | | [[http://api.jquery.com/removeClass/|.removeClass()]] | Remove a single class, multiple classes, or all classes from each element in the set of matched elements. | | [[http://api.jquery.com/toggleClass/|.toggleClass()]] | 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. | ====Dimensions==== | [[http://api.jquery.com/height/|.height()]] | Get the current computed height for the first element in the set of matched elements. | | [[http://api.jquery.com/innerHeight/|.innerHeight()]] | Get the current computed height for the first element in the set of matched elements, including padding but not border. | | [[http://api.jquery.com/innerWidth/|.innerWidth()]] | Get the current computed width for the first element in the set of matched elements, including padding but not border. | | [[http://api.jquery.com/outerHeight/|.outerHeight()]] | Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. | | [[http://api.jquery.com/outerWidth/|.outerWidth()]] | Get the current computed width for the first element in the set of matched elements, including padding and border. | | [[http://api.jquery.com/width/|.width()]] | Get the current computed width for the first element in the set of matched elements. | ====Offset==== | [[http://api.jquery.com/offset/|.offset()]] | Get the current coordinates of the first element in the set of matched elements, relative to the document. | | [[http://api.jquery.com/offsetParent/|.offsetParent()]] | Get the closest ancestor element that is positioned. | | [[http://api.jquery.com/position/|.position()]] | Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. | | [[http://api.jquery.com/scrollLeft/|.scrollLeft()]] | Get the current horizontal position of the scroll bar for the first element in the set of matched elements. | | [[http://api.jquery.com/scrollTop/|.scrollTop()]] | Get the current vertical position of the scroll bar for the first element in the set of matched elements. | ====Data==== | [[http://api.jquery.com/jQuery.data/|jQuery.data()]] | Store arbitrary data associated with the specified element. | | [[http://api.jquery.com/data/|.data()]] | Store arbitrary data associated with the matched elements. | | [[http://api.jquery.com/jQuery.hasData/|jQuery.hasData()]] | Determine whether an element has any jQuery data associated with it. | | [[http://api.jquery.com/jQuery.removeData/|jQuery.removeData()]] | Remove a previously-stored piece of data. | | [[http://api.jquery.com/removeData/|.removeData()]] | Remove a previously-stored piece of data. | =====Manipulation===== ====Copying==== | [[http://api.jquery.com/clone/|.clone()]] | Create a deep copy of the set of matched elements. | ====DOM Insertion, Around==== | [[http://api.jquery.com/wrap/|.wrap()]] | Wrap an HTML structure around each element in the set of matched elements. | | [[http://api.jquery.com/wrapAll/|.wrapAll()]] | Wrap an HTML structure around all elements in the set of matched elements. | | [[http://api.jquery.com/wrapInner/|.wrapInner()]] | Wrap an HTML structure around the content of each element in the set of matched elements. | ====DOM Insertion, Inside==== | [[http://api.jquery.com/append/|.append()]] | Insert content, specified by the parameter, to the end of each element in the set of matched elements. | | [[http://api.jquery.com/appendTo/|.appendTo()]] | Insert every element in the set of matched elements to the end of the target. | | [[http://api.jquery.com/html/|.html()]] | Get the HTML contents of the first element in the set of matched elements. | | [[http://api.jquery.com/prepend/|.prepend()]] | Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. | | [[http://api.jquery.com/prependTo/|.prependTo()]] | Insert every element in the set of matched elements to the beginning of the target. | | [[http://api.jquery.com/text/|.text()]] | Get the combined text contents of each element in the set of matched elements, including their descendants. | ====DOM Insertion, Outside==== | [[http://api.jquery.com/after/|.after()]] | Insert content, specified by the parameter, after each element in the set of matched elements. | | [[http://api.jquery.com/before/|.before()]] | Insert content, specified by the parameter, before each element in the set of matched elements. | | [[http://api.jquery.com/insertAfter/|.insertAfter()]] | Insert every element in the set of matched elements after the target. | | [[http://api.jquery.com/insertBefore/|.insertBefore()]] | Insert every element in the set of matched elements before the target. | ====DOM Removal==== | [[http://api.jquery.com/detach/|.detach()]] | Remove the set of matched elements from the DOM. | | [[http://api.jquery.com/empty/|.empty()]] | Remove all child nodes of the set of matched elements from the DOM. | | [[http://api.jquery.com/remove/|.remove()]] | Remove the set of matched elements from the DOM. | | [[http://api.jquery.com/unwrap/|.unwrap()]] | Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. | ====DOM Replacement==== | [[http://api.jquery.com/replaceAll/|.replaceAll()]] | Replace each target element with the set of matched elements. | | [[http://api.jquery.com/replaceWith/|.replaceWith()]] | Replace each element in the set of matched elements with the provided new content. | =====Traversing===== ====Filtering==== | [[http://api.jquery.com/eq/|.eq()]] | Reduce the set of matched elements to the one at the specified index. | | [[http://api.jquery.com/filter/|.filter()]] | Reduce the set of matched elements to those that match the selector or pass the function's test. | | [[http://api.jquery.com/first/|.first()]] | Reduce the set of matched elements to the first in the set. | | [[http://api.jquery.com/has/|.has()]] | Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. | | [[http://api.jquery.com/is/|.is()]] | Check the current matched set of elements against a selector and return true if at least one of these elements matches the selector. | | [[http://api.jquery.com/last/|.last()]] | Reduce the set of matched elements to the final one in the set. | | [[http://api.jquery.com/map/|.map()]] | Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. | | [[http://api.jquery.com/not/|.not()]] | Remove elements from the set of matched elements. | | [[http://api.jquery.com/slice/|.slice()]] | Reduce the set of matched elements to a subset specified by a range of indices. | ====Miscellaneous Traversing==== | [[http://api.jquery.com/add/|.add()]] | Add elements to the set of matched elements. | | [[http://api.jquery.com/andSelf/|.andSelf()]] | Add the previous set of elements on the stack to the current set. | | [[http://api.jquery.com/contents/|.contents()]] | Get the children of each element in the set of matched elements, including text and comment nodes. | | [[http://api.jquery.com/each/|.each()]] | Iterate over a jQuery object, executing a function for each matched element. | | [[http://api.jquery.com/end/|.end()]] | End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. | ====Tree Traversal==== | [[http://api.jquery.com/addBack/|.addBack()]] | Add the previous set of elements on the stack to the current set, optionally filtered by a selector. | | [[http://api.jquery.com/children/|.children()]] | Get the children of each element in the set of matched elements, optionally filtered by a selector. | | [[http://api.jquery.com/closest/|.closest()]] | Get the first ancestor element that matches the selector, beginning at the current element and progressing up through the DOM tree. | | [[http://api.jquery.com/find/|.find()]] | Get the descendants of each element in the current set of matched elements, filtered by a selector. | | [[http://api.jquery.com/next/|.next()]] | 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. | | [[http://api.jquery.com/nextAll/|.nextAll()]] | Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. | | [[http://api.jquery.com/nextUntil/|.nextUntil()]] | Get all following siblings of each element up to but not including the element matched by the selector. | | [[http://api.jquery.com/parent/|.parent()]] | Get the parent of each element in the current set of matched elements, optionally filtered by a selector. | | [[http://api.jquery.com/parents/|.parents()]] | Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. | | [[http://api.jquery.com/parentsUntil/|.parentsUntil()]] | Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector. | | [[http://api.jquery.com/prev/|.prev()]] | Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector. | | [[http://api.jquery.com/prevAll/|.prevAll()]] | Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector. | | [[http://api.jquery.com/prevUntil/|.prevUntil()]] | Get all preceding siblings of each element up to but not including the element matched by the selector. | | [[http://api.jquery.com/siblings/|.siblings()]] | Get the siblings of each element in the set of matched elements, optionally filtered by a selector. | =====Events===== ====Browser Events==== | [[http://api.jquery.com/error/|.error()]] | Bind an event handler to the 'error' JavaScript event. | | [[http://api.jquery.com/resize/|.resize()]] | Bind an event handler to the 'resize' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/scroll/|.scroll()]] | Bind an event handler to the 'scroll' JavaScript event, or trigger that event on an element. | ====Document Loading==== | [[http://api.jquery.com/jQuery.holdReady/|.holdReady()]] | Holds or releases the execution of jQuery's ready event. | | [[http://api.jquery.com/load-event/|.load()]] | Bind an event handler to the 'load' JavaScript event. | | [[http://api.jquery.com/ready/|.ready()]] | Specify a function to execute when the DOM is fully loaded. | | [[http://api.jquery.com/unload/|.unload()]] | Bind an event handler to the 'unload' JavaScript event. | ====Event Handler Attachment==== | [[http://api.jquery.com/bind/|.bind()]] | Attach a handler to an event for the elements. | | [[http://api.jquery.com/delegate/|.delegate()]] | 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. | | [[http://api.jquery.com/die/|.die()]] | Remove all event handlers previously attached using .live() from the elements. | | [[http://api.jquery.com/live/|.live()]] | Attach a handler to the event for all elements which match the current selector, now and in the future. | | [[http://api.jquery.com/off/|.off()]] | Remove an event handler. | | [[http://api.jquery.com/on/|.on()]] | Attach an event handler function for one or more events to the selected elements. | | [[http://api.jquery.com/one/|.one()]] | Attach a handler to an event for the elements. The handler is executed at most once per element. | | [[http://api.jquery.com/trigger/|.trigger()]] | Execute all handlers and behaviors attached to the matched elements for the given event type. | | [[http://api.jquery.com/triggerHandler/|.triggerHandler()]] | Execute all handlers attached to an element for an event. | | [[http://api.jquery.com/unbind/|.unbind()]] | Remove a previously-attached event handler from the elements. | | [[http://api.jquery.com/undelegate/|.undelegate()]] | 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. | ====Form Events==== | [[http://api.jquery.com/blur/|.blur()]] | Bind an event handler to the 'blur' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/change/|.change()]] | Bind an event handler to the 'change' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/focus/|.focus()]] | Bind an event handler to the 'focus' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/select/|.select()]] | Bind an event handler to the 'select' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/submit/|.submit()]] | Bind an event handler to the 'submit' JavaScript event, or trigger that event on an element. | ====Keyboard Events==== | [[http://api.jquery.com/keydown/|.keydown()]] | Bind an event handler to the 'keydown' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/keypress/|.keypress()]] | Bind an event handler to the 'keypress' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/keyup/|.keyup()]] | Bind an event handler to the 'keyup' JavaScript event, or trigger that event on an element. | ====Mouse Events==== | [[http://api.jquery.com/click/|.click()]] | Bind an event handler to the 'click' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/dblclick/|.dblclick()]] | Bind an event handler to the 'dblclick' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/focusin/|.focusin()]] | Bind an event handler to the 'focusin' JavaScript event. | | [[http://api.jquery.com/focusout/|.focusout()]] | Bind an event handler to the 'focusout' JavaScript event. | | [[http://api.jquery.com/hover/|.hover()]] | Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. | | [[http://api.jquery.com/mousedown/|.mousedown()]] | Bind an event handler to the 'mousedown' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/mouseenter/|.mouseenter()]] | Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. | | [[http://api.jquery.com/mouseleave/|.mouseleave()]] | Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. | | [[http://api.jquery.com/mousemove/|.mousemove()]] | Bind an event handler to the 'mousemove' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/mouseout/|.mouseout()]] | Bind an event handler to the 'mouseout' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/mouseover/|.mouseover()]] | Bind an event handler to the 'mouseover' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/mouseup/|.mouseup()]] | Bind an event handler to the 'mouseup' JavaScript event, or trigger that event on an element. | | [[http://api.jquery.com/toggle-event/|.toggle()]] | Bind two or more handlers to the matched elements, to be executed on alternate clicks. | ====Event Object==== | [[http://api.jquery.com/event.currentTarget/|event.currentTarget]] | The current DOM element within the event bubbling phase. | | [[http://api.jquery.com/event.data/|event.data]] | The optional data passed to jQuery.fn.bind when the current executing handler was bound. | | [[http://api.jquery.com/event.isDefaultPrevented/|event.isDefaultPrevented()]] | Returns whether event.preventDefault() was ever called on this event object. | | [[http://api.jquery.com/event.isImmediatePropagationStopped/|event.isImmediatePropagationStopped()]] | Returns whether event.stopImmediatePropagation() was ever called on this event object. | | [[http://api.jquery.com/event.isPropagationStopped/|event.isPropagationStopped()]] | Returns whether event.stopPropagation() was ever called on this event object. | | [[http://api.jquery.com/event.namespace/|event.namespace]] | The namespace specified when the event was triggered. | | [[http://api.jquery.com/event.pageX/|event.pageX]] | The mouse position relative to the left edge of the document. | | [[http://api.jquery.com/event.pageY/|event.pageY]] | The mouse position relative to the top edge of the document. | | [[http://api.jquery.com/event.preventDefault/|event.preventDefault()]] | If this method is called, the default action of the event will not be triggered. | | [[http://api.jquery.com/event.relatedTarget/|event.relatedTarget]] | The other DOM element involved in the event, if any. | | [[http://api.jquery.com/event.result/|event.result]] | The last value returned by an event handler that was triggered by this event, unless the value was undefined. | | [[http://api.jquery.com/event.stopImmediatePropagation/|event.stopImmediatePropagation()]] | Prevents other event handlers from being called. | | [[http://api.jquery.com/event.stopPropagation/|event.stopPropagation()]] | Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. | | [[http://api.jquery.com/event.target/|event.target]] | The DOM element that initiated the event. | | [[http://api.jquery.com/event.timeStamp/|event.timeStamp]] | The difference in milliseconds between the time an event is triggered and January 1, 1970. | | [[http://api.jquery.com/event.type/|event.type]] | Describes the nature of the event. | | [[http://api.jquery.com/event.which/|event.which]] | For key or button events, this attribute indicates the specific button or key that was pressed. | =====Effects===== ====Basics==== | [[http://api.jquery.com/hide/|.hide()]] | Hide the matched elements. | | [[http://api.jquery.com/show/|.show()]] | Display the matched elements. | | [[http://api.jquery.com/toggle/|.toggle()]] | Display or hide the matched elements. | ====Custom==== | [[http://api.jquery.com/animate|.animate()]] | Perform a custom animation of a set of CSS properties. | | [[http://api.jquery.com/clearQueue|.clearQueue()]] | Remove from the queue all items that have not yet been run. | | [[http://api.jquery.com/delay|.delay()]] | Set a timer to delay execution of subsequent items in the queue. | | [[http://api.jquery.com/dequeue|.dequeue()]] | Execute the next function on the queue for the matched elements. | | [[http://api.jquery.com/jQuery.dequeue/|jQuery.dequeue()]] | Execute the next function on the queue for the matched element. | | [[http://api.jquery.com/finish/|.finish()]] | Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements. | | [[http://api.jquery.com/jQuery.fx.interval|jQuery.fx.interval]] | The rate (in milliseconds) at which animations fire. | | [[http://api.jquery.com/jQuery.fx.off|jQuery.fx.off]] | Globally disable all animations. | | [[http://api.jquery.com/queue|.queue()]] | Show the queue of functions to be executed on the matched elements. | | [[http://api.jquery.com/jQuery.queue/|jQuery.queue()]] | Show the queue of functions to be executed on the matched elements. | | [[http://api.jquery.com/stop|.stop()]] | Stop the currently-running animation on the matched elements. | ====Fading==== | [[http://api.jquery.com/fadeIn/|.fadeIn()]] | Display the matched elements by fading them to opaque. | | [[http://api.jquery.com/fadeOut/|.fadeOut()]] | Hide the matched elements by fading them to transparent. | | [[http://api.jquery.com/fadeTo/|.fadeTo()]] | Adjust the opacity of the matched elements. | | [[http://api.jquery.com/fadeToggle/|.fadeToggle()]] | Display or hide the matched elements by animating their opacity. | ====Sliding==== | [[http://api.jquery.com/slideDown|.slideDown()]] | Display the matched elements with a sliding motion. | | [[http://api.jquery.com/slideToggle|.slideToggle()]] | Display or hide the matched elements with a sliding motion. | | [[http://api.jquery.com/slideUp|.slideUp()]] | Hide the matched elements with a sliding motion. | =====Ajax===== | ====Global Ajax Event Handlers==== | [[http://api.jquery.com/ajaxComplete/|.ajaxComplete()]] | Register a handler to be called when Ajax requests complete. This is an Ajax Event. | | [[http://api.jquery.com/ajaxError/|.ajaxError()]] | Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. | | [[http://api.jquery.com/ajaxSend/|.ajaxSend()]] | Attach a function to be executed before an Ajax request is sent. This is an Ajax Event. | | [[http://api.jquery.com/ajaxStart/|.ajaxStart()]] | Register a handler to be called when the first Ajax request begins. This is an Ajax Event. | | [[http://api.jquery.com/ajaxStop/|.ajaxStop()]] | Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. | | [[http://api.jquery.com/ajaxSuccess/|.ajaxSuccess()]] | Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event. | ====Helper Functions==== | [[http://api.jquery.com/jQuery.param/|jQuery.param()]] | Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. | | [[http://api.jquery.com/serialize/|.serialize()]] | Encode a set of form elements as a string for submission. | | [[http://api.jquery.com/serializeArray/|.serializeArray()]] | Encode a set of form elements as an array of names and values. | ====Low-Level Interface==== | [[http://api.jquery.com/jQuery.ajax/|jQuery.ajax()]] | Perform an asynchronous HTTP (Ajax) request. | | [[http://api.jquery.com/jQuery.ajaxSetup|jQuery.ajaxSetup()]] | Set default values for future Ajax requests. | ====Shorthand Methods==== | [[http://api.jquery.com/jQuery.get/|jQuery.get()]] | Load data from the server using a HTTP GET request. | | [[http://api.jquery.com/jQuery.getJSON/|jQuery.getJSON()]] | Load JSON-encoded data from the server using a GET HTTP request. | | [[http://api.jquery.com/jQuery.getScript/|jQuery.getScript()]] | Load a JavaScript file from the server using a GET HTTP request, then execute it. | | [[http://api.jquery.com/load/|.load()]] | Load data from the server and place the returned HTML into the matched element. | | [[http://api.jquery.com/jQuery.post/|jQuery.post()]] | Load data from the server using a HTTP POST request. | =====Core===== ====jQuery Object==== | [[http://api.jquery.com/jQuery/|jQuery()]] | Accepts a string containing a CSS selector which is then used to match a set of elements. | | [[http://api.jquery.com/jQuery.noConflict/|jQuery.noConflict()]] | Relinquish jQuery's control of the $ variable. | | [[http://api.jquery.com/jQuery.sub/|jQuery.sub()]] | Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object. | | [[http://api.jquery.com/jQuery.when/|jQuery.when()]] | Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events. | ====Utilities==== | [[http://api.jquery.com/jQuery.boxModel/|jQuery.boxModel]] | States if the current page, in the user's browser, is being rendered using the W3C CSS Box Model. | | [[http://api.jquery.com/jQuery.browser/|jQuery.browser]] | 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. | | [[http://api.jquery.com/jQuery.contains/|jQuery.contains()]] | Check to see if a DOM node is within another DOM node. | | [[http://api.jquery.com/jQuery.each/|jQuery.each()]] | 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. | | [[http://api.jquery.com/jQuery.extend/|jQuery.extend()]] | Merge the contents of two or more objects together into the first object. | | [[http://api.jquery.com/jQuery.globalEval/|jQuery.globalEval()]] | Execute some JavaScript code globally. | | [[http://api.jquery.com/jQuery.grep/|jQuery.grep()]] | Finds the elements of an array which satisfy a filter function. The original array is not affected. | | [[http://api.jquery.com/jQuery.inArray/|jQuery.inArray()]] | Search for a specified value within an array and return its index (or -1 if not found). | | [[http://api.jquery.com/jQuery.isArray/|jQuery.isArray()]] | Determine whether the argument is an array. | | [[http://api.jquery.com/jQuery.isEmptyObject/|jQuery.isEmptyObject()]] | Check to see if an object is empty (contains no properties). | | [[http://api.jquery.com/jQuery.isFunction/|jQuery.isFunction()]] | Determine if the argument passed is a Javascript function object. | | [[http://api.jquery.com/jQuery.isNumeric/|jQuery.isNumeric()]] | Determines whether its argument is a number. | | [[http://api.jquery.com/jQuery.isPlainObject/|jQuery.isPlainObject()]] | Check to see if an object is a plain object (created using '{}' or 'new Object'). | | [[http://api.jquery.com/jQuery.isWindow/|jQuery.isWindow()]] | Determine whether the argument is a window. | | [[http://api.jquery.com/jQuery.isXMLDoc/|jQuery.isXMLDoc()]] | Check to see if a DOM node is within an XML document (or is an XML document). | | [[http://api.jquery.com/jQuery.makeArray/|jQuery.makeArray()]] | Convert an array-like object into a true JavaScript array. | | [[http://api.jquery.com/jQuery.map/|jQuery.map()]] | Translate all items in an array or array-like object to another array of items. | | [[http://api.jquery.com/jQuery.merge/|jQuery.merge()]] | Merge the contents of two arrays together into the first array. | | [[http://api.jquery.com/jQuery.noop/|jQuery.noop()]] | An empty function. | | [[http://api.jquery.com/jQuery.now/|jQuery.now()]] | Return a number representing the current time. | | [[http://api.jquery.com/jQuery.parseHTML/|jQuery.parseHTML()]] | Parses a string into an array of DOM nodes. | | [[http://api.jquery.com/jQuery.parseJSON/|jQuery.parseJSON()]] | Takes a well-formed JSON string and returns the resulting JavaScript object. | | [[http://api.jquery.com/jQuery.parseXML/|jQuery.parseXML()]] | Parses a string into an XML document. | | [[http://api.jquery.com/jQuery.proxy/|jQuery.proxy()]] | Takes a function and returns a new one that will always have a particular context. | | [[http://api.jquery.com/jQuery.support/|jQuery.support]] | A collection of properties that represent the presence of different browser features or bugs. | | [[http://api.jquery.com/jQuery.trim/|jQuery.trim()]] | Remove the whitespace from the beginning and end of a string. | | [[http://api.jquery.com/jQuery.type/|jQuery.type()]] | Determine the internal JavaScript [[Class]] | of an object. | | [[http://api.jquery.com/jQuery.unique/|jQuery.unique()]] | 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. | ====DOM Element Methods==== | [[http://api.jquery.com/get/|.get()]] | Retrieve the DOM elements matched by the jQuery object. | | [[http://api.jquery.com/index/|.index()]] | Search for a given element from among the matched elements. | | [[http://api.jquery.com/size/|.size()]] | Return the number of elements in the jQuery object. | | [[http://api.jquery.com/toArray/|.toArray()]] | Retrieve all the DOM elements contained in the jQuery set, as an array. | ====Internals==== | [[http://api.jquery.com/jquery-2/|.jquery]] | A string containing the jQuery version number. | | [[http://api.jquery.com/context/|.context]] | The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document. | | [[http://api.jquery.com/jQuery.error/|jQuery.error()]] | Takes a string and throws an exception containing it. | | [[http://api.jquery.com/length/|.length]] | The number of elements in the jQuery object. | | [[http://api.jquery.com/pushStack/|.pushStack()]] | Add a collection of DOM elements onto the jQuery stack. | | [[http://api.jquery.com/selector/|.selector]] | A selector representing selector originally passed to jQuery(). | ====Deferred Object==== | [[http://api.jquery.com/deferred.always/|deferred.always()]] | Add handlers to be called when the Deferred object is either resolved or rejected. | | [[http://api.jquery.com/deferred.done/|deferred.done()]] | Add handlers to be called when the Deferred object is resolved. | | [[http://api.jquery.com/deferred.fail/|deferred.fail()]] | Add handlers to be called when the Deferred object is rejected. | | [[http://api.jquery.com/deferred.isRejected/|deferred.isRejected()]] | Determine whether a Deferred object has been rejected. | | [[http://api.jquery.com/deferred.isResolved/|deferred.isResolved()]] | Determine whether a Deferred object has been resolved. | | [[http://api.jquery.com/deferred.notify/|deferred.notify()]] | Call the progressCallbacks on a Deferred object with the given args. | | [[http://api.jquery.com/deferred.notifyWith/|deferred.notifyWith()]] | Call the progressCallbacks on a Deferred object with the given context and args. | | [[http://api.jquery.com/deferred.pipe/|deferred.pipe()]] | Utility method to filter and/or chain Deferreds. | | [[http://api.jquery.com/deferred.progress/|deferred.progress()]] | Add handlers to be called when the Deferred object generates progress notifications. | | [[http://api.jquery.com/deferred.promise/|deferred.promise()]] | Return a Deferred's Promise object. | | [[http://api.jquery.com/deferred.reject/|deferred.reject()]] | Reject a Deferred object and call any failCallbacks with the given args. | | [[http://api.jquery.com/deferred.rejectWith/|deferred.rejectWith()]] | Reject a Deferred object and call any failCallbacks with the given context and args. | | [[http://api.jquery.com/deferred.resolve/|deferred.resolve()]] | Resolve a Deferred object and call any doneCallbacks with the given args. | | [[http://api.jquery.com/deferred.resolveWith/|deferred.resolveWith()]] | Resolve a Deferred object and call any doneCallbacks with the given context and args. | | [[http://api.jquery.com/deferred.state/|deferred.state()]] | Determine the current state of a Deferred object. | | [[http://api.jquery.com/deferred.then/|deferred.then()]] | Add handlers to be called when the Deferred object is resolved or rejected. | | [[http://api.jquery.com/promise/|.promise()]] | Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished. | ====Callbacks Object==== | [[http://api.jquery.com/jQuery.Callbacks/|jQuery.Callbacks()]] | A multi-purpose callbacks list object that provides a powerful way to manage callback lists. | | [[http://api.jquery.com/callbacks.add/|callbacks.add()]] | Add a callback or a collection of callbacks to a callback list. | | [[http://api.jquery.com/callbacks.disable/|callbacks.disable()]] | Disable a callback list from doing anything more. | | [[http://api.jquery.com/callbacks.empty/|callbacks.empty()]] | Remove all of the callbacks from a list. | | [[http://api.jquery.com/callbacks.fire/|callbacks.fire()]] | Call all of the callbacks with the given arguments. | | [[http://api.jquery.com/callbacks.fired/|callbacks.fired()]] | Determine if the callbacks have already been called at least once. | | [[http://api.jquery.com/callbacks.fireWith/|callbacks.fireWith()]] | Call all callbacks in a list with the given context and arguments. | | [[http://api.jquery.com/callbacks.has/|callbacks.has()]] | Determine whether a supplied callback is in a list. | | [[http://api.jquery.com/callbacks.lock/|callbacks.lock()]] | Lock a callback list in its current state. | | [[http://api.jquery.com/callbacks.locked/|callbacks.locked()]] | Determine if the callbacks list has been locked. | | [[http://api.jquery.com/callbacks.remove/|callbacks.remove()]] | Remove a callback or a collection of callbacks from a callback list. |