Primer ensayo

Páginas: 5 (1049 palabras) Publicado: 3 de mayo de 2011
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 injQuery 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 jQueryafter(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 jQueryjQuery 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

RETURNSval() 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...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • mi primer ensayo
  • Primer ensayo.
  • primer ensayo
  • Mi Primer Ensayo
  • Primer ensayo
  • Primer ensayo
  • primer ensayo
  • Primer ensayo

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS