jQuery2

Card Set Information

Author:
robknox
ID:
19802
Filename:
jQuery2
Updated:
2010-05-18 19:37:43
Tags:
jQuery
Folders:

Description:
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user robknox on FreezingBlue Flashcards. What would you like to do?


  1. .add()
    Add elements to the set of matched elements.
  2. .addClass()
    Adds the specified class(es) to each of the set of matched elements.
  3. .after()
    Insert content, specified by the parameter, after each element in the set of matched elements.
  4. jQuery.ajax()
    Perform an asynchronous HTTP (Ajax) request.
  5. .ajaxComplete()
    Register a handler to be called when Ajax requests complete. This is an Ajax Event.
  6. .ajax.Error()
    Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
  7. .ajaxSend()
    Show a message before an Ajax request is sent.
  8. jQuery.ajaxSetup()
    Set default values for future Ajax requests.
  9. .ajaxStart()
    Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
  10. .ajaxStop()
    Hide a loading message after all the Ajax requests have stopped.
  11. .ajaxSuccess()
    Show a message when an Ajax request completes successfully.
  12. ("*")
    Selects all elements.
  13. .andSelf()
    Add the previous set of elements on the stack to the current set.
  14. .animate()
    Perform a custom animation of a set of CSS properties.
  15. :animated Selector
    Select all elements that are in the progress of an animation at the time the selector is run.
  16. .append()
    Insert content, specified by the parameter, to the end of each element in the set of matched elements.
  17. .appendTo()
    Insert every element in the set of matched elements to the end of the target.
  18. .attr()
    Get the value of an attribute for the first element in the set of matched elements.
  19. 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 (-).
  20. Attribute Contains Selector [name*=value]
    Selects elements that have the specified attribute with a value containing the a given substring.
  21. Attribute Contains Word Selector [name~=value]
    Selects elements that have the specified attribute with a value containing a given word, delimited by spaces.
  22. Attribute Ends With Selector [name$=value]
    Selects elements that have the specified attribute with a value ending exactly with a given string.
  23. Attribute Equals Selector [name=value]
    Selects elements that have the specified attribute with a value exactly equal to a certain value.
  24. Attribute Not Equal Selector [name!=value]
    Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.
  25. Attribute Starts With Selector [name^=value]
    Selects elements that have the specified attribute with a value beginning exactly with a given string.
  26. .before()
    Insert content, specified by the parameter, before each element in the set of matched elements.
  27. .bind()
    Attach a handler to an event for the elements.
  28. .blur()
    Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
  29. jQuery.boxModel
    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.
  30. jQuery.browser
    We recommend against using this property, please try to use feature detection instead (see jQuery.support). Contains flags for the useragent, read from navigator.userAgent. While jQuery.browser will not be removed from future versions of jQuery, every effort to use jQuery.support and proper feature detection should be made.
  31. :button Selector
    Selects all button elements and elements of type button.
  32. .change()
    Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
  33. :checkbox Selector
    Selects all elements of type checkbox.
  34. :checked Selector
    Matches all elements that are checked.
  35. Child Selector (“parent > child”)
    Selects all direct child elements specified by "child" of elements specified by "parent".
  36. .children()
    Get the children of each element in the set of matched elements, optionally filtered by a selector.
  37. Class Selector (“.class”)
    Selects all elements with the given class.
  38. .clearQueue()
    Remove from the queue all items that have not yet been run.
  39. .click()
    Bind an event handler to the "click" JavaScript event, or trigger that event on an element.
  40. .clone()
    Create a copy of the set of matched elements.
  41. .closest()
    Get the first ancestor element that matches the selector, beginning at the current element and progressing up through the DOM tree.
  42. jQuery.contains()
    Check to see if a DOM node is within another DOM node.
  43. :contains() Selector
    Select all elements that contain the specified text.
  44. .contents()
    Get the children of each element in the set of matched elements, including text nodes.
  45. .context
    The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document.
  46. .css()
    Get the value of a style property for the first element in the set of matched elements.
  47. .data()
    Store arbitrary data associated with the matched elements.
  48. jQuery.data()
    Store arbitrary data associated with the specified element.
  49. .dblclick()
    Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
  50. .delay()
    Set a timer to delay execution of subsequent items in the queue.
  51. .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.
  52. .dequeue()
    Execute the next function on the queue for the matched elements.
  53. jQuery.dequeue()
    Execute the next function on the queue for the matched element.
  54. Descendant Selector (“ancestor descendant”)
    Selects all elements that are descendants of a given ancestor.
  55. .detach()
    Remove the set of matched elements from the DOM.
  56. .die()
    Remove all event handlers previously attached using .live() from the elements.
  57. :disabled Selector
    Selects all elements that are disabled.
  58. jQuery.each()
    Iterates through the array displaying each number as both a word and numeral
  59. .each()
    Iterate over a jQuery object, executing a function for each matched element.
  60. Element Selector (“element”)
    Selects all elements with the given tag name.
  61. .empty()
    Remove all child nodes of the set of matched elements from the DOM.
  62. :empty Selector
    Select all elements that have no children (including text nodes).
  63. :enabled Selector
    Selects all elements that are enabled.
  64. .end()
    End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
  65. .eq()
    Reduce the set of matched elements to the one at the specified index.
  66. :eq() Selector
    Select the element at index n within the matched set.
  67. .error()
    Bind an event handler to the "error" JavaScript event.
  68. jQuery.error
    Takes a string and throws an exception containing it.
  69. :even Selector
    Selects even elements, zero-indexed. See also odd.
  70. event.currentTarget
    The current DOM element within the event bubbling phase.
  71. event.data
    Contains the optional data passed to jQuery.fn.bind when the current executing handler was bound.
  72. event.isDefaultPrevented()
    Returns whether event.preventDefault() was ever called on this event object.
  73. event.isImmediatePropagationStopped()
    Returns whether event.stopImmediatePropagation() was ever called on this event object.
  74. event.isPropagationStopped()
    Returns whether event.stopPropagation() was ever called on this event object.
  75. event.pageX
    The mouse position relative to the left edge of the document.
  76. event.pageY
    The mouse position relative to the top edge of the document.
  77. event.preventDefault()
    If this method is called, the default action of the event will not be triggered.
  78. event.relatedTarget
    The other DOM element involved in the event, if any.
  79. event.result
    This attribute contains the last value returned by an event handler that was triggered by this event, unless the value was undefined.
  80. event.stopImmediatePropagation()
    Prevents other event handlers from being called.
  81. event.stopPropagation()
    Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.
  82. event.target
    The DOM element that initiated the event.
  83. event.timeStamp
    This attribute returns the number of milliseconds since January 1, 1970, when the event is triggered.
  84. event.type
    Describes the nature of the event.
  85. event.which
    For key or button events, this attribute indicates the specific button or key that was pressed.
  86. jQuery.extend()
    Merge the contents of two or more objects together into the first object.
  87. .fadeIn()
    Display the matched elements by fading them to opaque.
  88. .fadeOut()
    Hide the matched elements by fading them to transparent.
  89. .fadeTo()
    Adjust the opacity of the matched elements.
  90. :file Selector
    Selects all elements of type file.
  91. .filter()
    Reduce the set of matched elements to those that match the selector or pass the function's test.
  92. .find()
    Get the descendants of each element in the current set of matched elements, filtered by a selector.
  93. .first()
    Reduce the set of matched elements to the first in the set.
  94. :first-child Selector
    Selects all elements that are the first child of their parent.
  95. :first Selector
    Selects the first matched element.
  96. .focus()
    Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
  97. .focusin()
    Bind an event handler to the "focusin" JavaScript event.
  98. .focusout()
    Bind an event handler to the "focusout" JavaScript event.
  99. jQuery.fx.off
    Globally disable all animations.
  100. jQuery.get()
    Load data from the server using a HTTP GET request.
  101. .get()
    Retrieve the DOM elements matched by the jQuery object.
  102. jQuery.getJSON()
    Load JSON-encoded data from the server using a GET HTTP request.
  103. jQuery.getScript()
    Load a JavaScript file from the server using a GET HTTP request, then execute it.
  104. jQuery.globalEval()
    Execute some JavaScript code globally.
  105. jQuery.grep()
    Finds the elements of an array which satisfy a filter function. The original array is not affected.
  106. :gt() Selector
    Select all elements at an index greater than index within the matched set.
  107. .has()
    Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
  108. Has Attribute Selector [name]
    Selects elements that have the specified attribute, with any value.
  109. :has() Selector
    Selects elements which contain at least one element that matches the specified selector.
  110. .hasClass()
    Determine whether any of the matched elements are assigned the given class.
  111. :header Selector
    Selects all elements that are headers, like h1, h2, h3 and so on.
  112. .height()
    Get the current computed height for the first element in the set of matched elements.
  113. :hidden Selector
    Selects all elements that are hidden.
  114. .hide()
    Hide the matched elements.
  115. .hover()
    Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
  116. .html()
    Get the HTML contents of the first element in the set of matched elements.
  117. ID Selector (“#id”)
    Selects a single element with the given id attribute.
  118. :image Selector
    Selects all elements of type image.
  119. jQuery.inArray()
    Search for a specified value within an array and return its index (or -1 if not found).
  120. .index()
    Search for a given element from among the matched elements.
  121. .innerHeight()
    Get the current computed height for the first element in the set of matched elements, including padding but not border.
  122. .innerWidth()
    Get the current computed width for the first element in the set of matched elements, including padding but not border.
  123. :input Selector
    Selects all input, textarea, select and button elements.
  124. .insertAfter()
    Insert every element in the set of matched elements after the target.
  125. .insertBefore()
    Insert every element in the set of matched elements before the target.
  126. .is()
    Check the current matched set of elements against a selector and return true if at least one of these elements matches the selector.
  127. jQuery.isArray()
    Determine whether the argument is an array.
  128. jQuery.isEmptyObject()
    Check to see if an object is empty (contains no properties).
  129. jQuery.isFunction()
    Determine if the argument passed is a Javascript function object.
  130. jQuery.isPlainObject()
    Check to see if an object is a plain object (created using "{}" or "new Object").
  131. jQuery.isXMLDoc()
    Check to see if a DOM node is within an XML document (or is an XML document).
  132. jQuery()
    Accepts a string containing a CSS selector which is then used to match a set of elements.
  133. .keydown()
    Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
  134. .keypress()
    Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
  135. .keyup()
    Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
  136. .last()
    Reduce the set of matched elements to the final one in the set.
  137. :last-child Selector
    Selects all elements that are the last child of their parent.
  138. :last Selector
    Selects the last matched element.
  139. .length
    The number of elements in the jQuery object.
  140. .live()
    Attach a handler to the event for all elements which match the current selector, now or in the future.
  141. .load()
    Load data from the server and place the returned HTML into the matched element.

    and

    Bind an event handler to the "load" JavaScript event.
  142. :lt() Selector
    Select all elements at an index less than index within the matched set.
  143. jQuery.makeArray()
    Convert an array-like object into a true JavaScript array.
  144. .map()
    Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.
  145. jQuery.map()
    Translate all items in an array or array-like object to another array of items.
  146. jQuery.merge()
    Merge the contents of two arrays together into the first array.
  147. .mousedown()
    Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
  148. .mouseenter()
    Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
  149. .mouseleave()
    Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
  150. .mousemove()
    Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
  151. .mouseout()
    Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
  152. .mouseover()
    Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
  153. .mouseup()
    Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
  154. Multiple Attribute Selector [name=value][name2=value2]
    Matches elements that match all of the specified attribute filters.
  155. Multiple Selector (“selector1, selector2, selectorN”)
    Selects the combined results of all the specified selectors.
  156. .next()
    Get the immediately following sibling of each element in the set of matched elements, optionally filtered by a selector.
  157. Next Adjacent Selector (“prev + next”)
    Selects all next elements matching "next" that are immediately preceded by a sibling "prev".
  158. 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.
  159. .nextAll()
    Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
  160. .nextUntil()
    Get all following siblings of each element up to but not including the element matched by the selector.
  161. jQuery.noConflict()
    Relinquish jQuery's control of the $ variable.
  162. jQuery.noop()
    An empty function.
  163. .not()
    Remove elements from the set of matched elements.
  164. :not() Selector
    Selects all elements that do not match the given selector.
  165. :nth-child Selector
    Selects all elements that are the nth-child of their parent.
  166. :odd Selector
    elects odd elements, zero-indexed. See also even.
  167. .offset()
    Get the current coordinates of the first element in the set of matched elements, relative to the document.
  168. .offsetParent()
    Get the closest ancestor element that is positioned.
  169. .one()
    Attach a handler to an event for the elements. The handler is executed at most once per element.
  170. :only-child Selector
    Selects all elements that are the only child of their parent.
  171. .outerHeight()
    Get the current computed height for the first element in the set of matched elements, including padding and border.
  172. .outerWidth()
    Get the current computed width for the first element in the set of matched elements, including padding and border.
  173. jQuery.param()
    Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
  174. .parent()
    Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
  175. :parent Selector
    Select all elements that are the parent of another element, including text nodes.
  176. .parents()
    Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
  177. .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.
  178. jQuery.parseJSON
    Takes a well-formed JSON string and returns the resulting JavaScript object.
  179. :password Selector
    Selects all elements of type password.
  180. .position()
    Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
  181. jQuery.post()
    Load data from the server using a HTTP POST request.
  182. .prepend()
    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
  183. .prependTo()
    Insert every element in the set of matched elements to the beginning of the target.
  184. .prev()
    Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector.
  185. .prevAll()
    Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
  186. .prevUntil()
    Get all preceding siblings of each element up to but not including the element matched by the selector.
  187. jQuery.proxy()
    Takes a function and returns a new one that will always have a particular context.
  188. jQuery.pushStack()
    Add a collection of DOM elements onto the jQuery stack.
  189. .queue()
    Show the queue of functions to be executed on the matched elements.
  190. jQuery.queue()
    Show the queue of functions to be executed on the matched element.
  191. :radio Selector
    Selects all elements of type radio.
  192. .ready()
    Specify a function to execute when the DOM is fully loaded.
  193. .remove()
    Remove the set of matched elements from the DOM.
  194. .removeAttr()
    Remove an attribute from each element in the set of matched elements.
  195. .removeClass()
    Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
  196. .removeData()
    Remove a previously-stored piece of data.
  197. jQuery.removeData()
    Remove a previously-stored piece of data.
  198. .replaceAll()
    A selector expression indicating which element(s) to replace.
  199. .replaceWith()
    Replace each element in the set of matched elements with the provided new content.
  200. :reset Selector
    Selects all elements of type reset.
  201. .resize()
    Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
  202. .scroll()
    Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
  203. .scrollLeft()
    Get the current horizontal position of the scroll bar for the first element in the set of matched elements.
  204. .scrollTop()
    Get the current vertical position of the scroll bar for the first element in the set of matched elements.
  205. .select()
    Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
  206. :selected Selector
    Selects all elements that are selected.
  207. .selector
    A selector representing selector originally passed to jQuery().
  208. .serialize()
    Encode a set of form elements as a string for submission.
  209. .serializeArray()
    Encode a set of form elements as an array of names and values.
  210. .show()
    Display the matched elements.
  211. .siblings()
    Get the siblings of each element in the set of matched elements, optionally filtered by a selector.
  212. .size()
    Return the number of DOM elements matched by the jQuery object.
  213. .slice()
    Reduce the set of matched elements to a subset specified by a range of indices.
  214. .slideDown()
    Display the matched elements with a sliding motion.
  215. .slideToggle()
    Display or hide the matched elements with a sliding motion.
  216. .slideUp()
    Hide the matched elements with a sliding motion.
  217. .stop()
    Stop the currently-running animation on the matched elements.
  218. .submit()
    Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
  219. :submit Selector
    Selects all elements of type submit.
  220. jQuery.support
    A collection of properties that represent the presence of different browser features or bugs.
  221. .text()
    Get the combined text contents of each element in the set of matched elements, including their descendants.
  222. :text Selector
    Selects all elements of type text.
  223. .toArray()
    Retrieve all the DOM elements contained in the jQuery set, as an array.
  224. .toggle()
    Bind two or more handlers to the matched elements, to be executed on alternate clicks.
  225. .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.
  226. .trigger()
    Execute all handlers and behaviors attached to the matched elements for the given event type.
  227. .triggerHandler()
    Execute all handlers attached to an element for an event.
  228. jQuery.trim()
    Remove the whitespace from the beginning and end of a string.
  229. .unbind()
    Remove a previously-attached event handler from the elements.
  230. .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.
  231. 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.
  232. .unload()
    Bind an event handler to the "unload" JavaScript event.
  233. .unwrap()
    Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
  234. .val()
    Get the current value of the first element in the set of matched elements.
  235. :visible Selector
    Selects all elements that are visible.
  236. .width()
    Get the current computed width for the first element in the set of matched elements.
  237. .wrap()
    Wrap an HTML structure around each element in the set of matched elements.
  238. .wrapAll()
    Wrap an HTML structure around all elements in the set of matched elements.
  239. .wrapInner()
    Wrap an HTML structure around the content of each element in the set of matched elements.

What would you like to do?

Home > Flashcards > Print Preview