jQuery Cheat Sheet Core jQuery Function FUNCTION RETURNS SELECTOR

Reviews
Shared by: acslater
Stats
views:
241
rating:
not rated
reviews:
0
posted:
4/8/2009
language:
English
pages:
0
jQuery 1.3 Cheat Sheet Core jQuery Function FUNCTION RETURNS SELECTOR Selectors Basic RETURNS Attribute Filters Array Array Array Array Array SELECTOR 2 RETURNS $(expr, [context]) $(html, [owner]) $(elems) $(func) jQuery Object Accessors PROPERTY jQuery jQuery jQuery jQuery * #id name .class selector1, selectorN [attr] Array 2 2 2 2 2 2 [attr=value] [attr!=value] [attr^=value] [attr$=value] [attr*=value] Array Array Array Array Array Array RETURNS 1 1 selector context length FUNCTION String Element Number RETURNS Hierarchy SELECTOR RETURNS [attr1][attr2][attrN] ancestor descendant parent > child previous + next previous ~ siblings Basic Filters SELECTOR Array Array Array Array 2) The [@attr] style selectors were removed in jQuery 1.3 Child Filters SELECTOR RETURNS size() eq(index) get() get(index) index(element) each(func) 1) New in jQuery 1.3 Number jQuery Array Element Number jQuery :nth-child(index | even | odd | equation) :first-child :last-child :only-child Forms SELECTOR Array Array Array Array RETURNS :first :last :not(selector) :even :odd :eq(index) :gt(index) :lt(index) :header :animated Content Filters SELECTOR Array Array Array Array Array Array Array Array Array Array RETURNS Data FUNCTION RETURNS :hidden :input :text :password :checkbox :radio :image :file :button :submit :reset Form Filters SELECTOR Array Array Array Array Array Array Array Array Array Array Array data(name) data(name, value) removeData(name) queue(name) queue(name, func) queue(name, queue) dequeue(name) Plugins FUNCTION Object jQuery jQuery Array jQuery jQuery jQuery RETURNS :contains(text) RETURNS Array Array Array Array :empty :has(selector) :parent Visibility Filters SELECTOR $.fn.extend(object) $.extend(object) Interoperability FUNCTION jQuery jQuery RETURNS :enabled RETURNS Array Array Array Array RETURNS $.noConflict() $.noConflict(extreme) jQuery jQuery :disabled :checked :selected Traversing Filtering :hidden :visible Array Array Attributes Attr FUNCTION RETURNS Manipulation Insert Inside FUNCTION RETURNS FUNCTION RETURNS attr(name) attr(props) attr(key, value | func) removeAttr(name) Class FUNCTION Object jQuery jQuery jQuery append(content) appendTo(selector) prepend(content) prependTo(selector) Insert Outside FUNCTION jQuery jQuery jQuery jQuery filter(expr) filter(func) is(expr) map(func) not(expr) slice(start, [end]) Finding FUNCTION jQuery jQuery Boolean jQuery jQuery jQuery RETURNS RETURNS hasClass(class) addClass(class) removeClass([class]) toggleClass(class) toggleClass(class, switch) HTML FUNCTION Boolean jQuery jQuery jQuery jQuery after(content) before(content) insertAfter(content) insertBefore(content) Insert Around FUNCTION jQuery jQuery jQuery jQuery RETURNS add(expr) children([expr]) closest([expr]) contents() find(expr) next([expr]) nextAll([expr]) prev([expr]) prevAll([expr]) offsetParent() parent([expr]) parents([expr]) siblings([expr]) Chaining FUNCTION jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery RETURNS RETURNS wrap(html | element) wrapAll(html | element) wrapInner(html | elem) Replace FUNCTION jQuery jQuery jQuery html() html(value) Text FUNCTION String jQuery RETURNS RETURNS text() text(value) Value FUNCTION String jQuery replaceWith(content) replaceAll(selector) Remove FUNCTION jQuery jQuery RETURNS RETURNS val() val(value) String, Array jQuery empty() remove([expr]) Copy FUNCTION jQuery jQuery RETURNS RETURNS andSelf() end() jQuery jQuery clone([events]) Legend SYNTAX DESCRIPTION SYNTAX DESCRIPTION SYNTAX jQuery DESCRIPTION SYNTAX DESCRIPTION function functions or properties argument arguments | one argument only [] optional argument jQuery 1.3 Cheat Sheet Events Page Load FUNCTION RETURNS FUNCTION CSS CSS RETURNS Utilities Browser & Feature Detection PROPERTY RETURNS 5 5 ready(func) Event Handling FUNCTION jQuery css(name) css(props) css(name, value) Position FUNCTION String jQuery jQuery $.browser Map String Boolean 6 6 6 $.browser.version $.boxModel 5 RETURNS bind(type, [data], func) one(type, [data], func) trigger(event, [data]) triggerHandler(event, [data]) unbind([type], [data]) Live Events FUNCTION jQuery jQuery jQuery Object jQuery RETURNS $.support.boxModel $.support.cssFloat Object {top, left} Object {top, left} Integer jQuery Integer jQuery Boolean Boolean Boolean Boolean 6 offset() position() scrollTop() scrollTop(value) scrollLeft() scrollLeft(value) Dimension FUNCTION $.support.hrefNormalized $.support.htmlSerialize $.support.noCloneEvent $.support.objectAll $.support.opacity $.support.style $.support.tbody 5) Deprecated in jQuery 1.3 6) New in jQuery 1.3 6 6 6 6 6 6 $.support.leadingWhitespace 6 Boolean Boolean Boolean Boolean Boolean Boolean Boolean RETURNS 3 3 live(type, func) jQuery jQuery die([type], [func]) FUNCTION Interaction Helpers RETURNS $.support.scriptEval RETURNS width() width(value) height() height(value) innerWidth() innerHeight() outerWidth([options]) outerHeight([options]) Effects Basic FUNCTION Integer jQuery Integer jQuery Integer Integer Integer Integer hover(over, out) toggle(func1, func2, ..., [funcN]) Event Helpers FUNCTION jQuery jQuery Array & Object Operations FUNCTION RETURNS RETURNS 4 4 blur([func]) click([func]) error([func]) jQuery jQuery jQuery 4 $.each(object, func) $.extend([deep], target, object1, ..., [objectN]) $.grep(array, func, [invert]) $.makeArray(object) $.map(array, func) $.inArray(value, array) Object Object Array Array Array Number Array Array change([func]) 4 dblclick([func]) 4 4 jQuery jQuery jQuery 4 4 focus([func]) keydown([func]) keypress([func]) keyup([func]) load(func) 4 jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery jQuery RETURNS show() show(speed, [func]) hide() hide(speed, [func]) toggle() toggle(switch) toggle(speed, [func]) Sliding FUNCTION jQuery jQuery jQuery jQuery jQuery jQuery jQuery $.merge(first, second) $.unique(array) Test Operations FUNCTION RETURNS mousedown(func) mousemove(func) mouseout(func) mouseover(func) mouseup(func) resize(func) scroll(func) select([func]) submit([func]) unload(func) 3) New in jQuery 1.3 4) Omitting the value triggers the events on each matched element 4 4 $.isArray(object) $.isFunction(object) String Operations FUNCTION Boolean Boolean RETURNS $.trim(string) RETURNS String slideDown(speed, [func]) slideUp(speed, [func]) slideToggle(speed, [func]) Fading FUNCTION jQuery jQuery jQuery URLs FUNCTION RETURNS $.param(object) Ajax Requests FUNCTION String jQuery jQuery jQuery RETURNS fadeIn(speed, [func]) fadeOut(speed, [func]) RETURNS jQuery jQuery jQuery RETURNS $.ajax(options) load(url, [data], [func]) $.get(url, [data], [func], [type]) $.post(url, [data], [func], [type]) $.getJSON(url, [data], [func]) $.getScript(url, [func]) Events FUNCTION XMLHttpRequest jQuery XMLHttpRequest XMLHttpRequest XMLHttpRequest XMLHttpRequest Event Object PROPERTY type target relatedTarget currentTarget pageX pageY result timeStamp FUNCTION String Element fadeTo(speed, opacity, [func]) Custom FUNCTION RETURNS Element Element String String Object Number RETURNS animate(params, [duration], [easing], [func]) animate(params, options) stop([clearQueue], [gotoEnd]) Settings PROPERTY jQuery jQuery jQuery RETURNS ajaxComplete([func]) RETURNS jQuery jQuery jQuery jQuery jQuery jQuery ajaxSuccess([func]) ajaxError([func]) ajaxSend([func]) ajaxStart([func]) ajaxStop([func]) Miscellaneous FUNCTION $.fx.off Boolean preventDefault() isDefaultPrevented() stopPropagation() isPropagationStopped() stopImmediatePropagation() isImmediatePropagationStopped() Undefined Boolean Undefined Boolean Undefined Boolean RETURNS $.ajaxSetup(options) serialize() serializeArray() Legend jQuery String Array SYNTAX DESCRIPTION SYNTAX DESCRIPTION SYNTAX DESCRIPTION SYNTAX DESCRIPTION function functions or properties argument arguments | one argument only [] optional argument
Related docs
jquery doc
Views: 324  |  Downloads: 67
jQuery CheatSheet
Views: 100  |  Downloads: 25
jQuery Introduction
Views: 653  |  Downloads: 45
jQuery Selectors
Views: 1514  |  Downloads: 75
Jquery-Cheat-Sheet 1.1.4.ai
Views: 78  |  Downloads: 28
An Introduction to jQuery
Views: 187  |  Downloads: 31
jquery
Views: 0  |  Downloads: 0
jQuery Workshop
Views: 103  |  Downloads: 10
jQuery and Drupal
Views: 6  |  Downloads: 5
Other docs by acslater
Transcript of Lend Lease Act
Views: 163  |  Downloads: 0
Interstate Commerce Act info
Views: 457  |  Downloads: 1
Agency to sell business
Views: 225  |  Downloads: 2
STATIONERYSAMPLE
Views: 107  |  Downloads: 0
Morrill Act info
Views: 239  |  Downloads: 0
WhatShouldMyStaffKnow_fcnyTraining
Views: 198  |  Downloads: 2
24[0]
Views: 145  |  Downloads: 0
301 Useless Facts
Views: 246  |  Downloads: 7
Venture Capital and US Competitiveness
Views: 1475  |  Downloads: 182
Sample Executive Summary onlinephoto
Views: 455  |  Downloads: 8
bste
Views: 149  |  Downloads: 2
Application for family home license
Views: 145  |  Downloads: 0
Transcript of Tennessee Valley Authority Act
Views: 160  |  Downloads: 0