Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
jQuery 1.3 Cheatsheet

jQuery 1.3 Cheatsheet

Ratings: (0)|Views: 90 |Likes:
Published by Evan

More info:

Categories:Topics, Art & Design
Published by: Evan on Dec 28, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/14/2010

pdf

text

original

 
Core
$(
html 
,[
owner 
])$(
expr 
,[
context 
])$(
elems 
)$(
func 
)
jQuery 1.3 Cheat Sheet
jQuery FunctionInteroperability
$.noConflict()$.noConflict(
extreme 
)
Plugins
$.fn.extend(
object 
)$.extend(
object 
)
Data
data(
name 
)data(
name 
,
value 
)removeData(
name 
)queue(
name 
)queue(
name 
,
func 
)queue(
name 
,
queue 
)dequeue(
name 
)each(
func 
)size()
jQuery Object Accessors
lengthselector
1
context
1
eq(
index 
)get()get(
index 
)index(
element 
)
 jQuery jQuery jQuery jQuery jQueryNumberNumberStringElementNumber jQueryElementArray<Element> jQuery jQuery jQuery jQuery jQueryObjectArray<Function> jQuery jQuery jQuery jQuery
1) New in jQuery 1.3
FUNCTION RETURNSPROPERTY RETURNSFUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNS
[ ]| one argument only optional argument
argument 
Legend
functionfunctions or properties arguments
SYNTAX DESCRIPTION
Manipulation
wrap(
html 
|
element 
)
jQuery
wrapInner(
html 
|
elem 
)wrapAll(
html 
|
element 
)
jQuery jQuery
appendTo(
selector 
)
Insert Inside
append(
content 
)
jQuery jQuery
prependTo(
selector 
)prepend(
content 
)
jQuery jQuery
before(
content 
)
Insert Outside
after(
content 
)
jQuery jQuery
insertBefore(
content 
)insertAfter(
content 
)
jQuery jQuery
Insert Around
replaceWith(
content 
)
jQuery
replaceAll(
selector 
)
jQuery
Replace
empty()
jQuery
remove([
expr 
])
jQuery
Remove
clone([
events 
])
jQuery
Copy
FUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNS
Attributes
attr(
key 
,
value 
|
func 
)
jQuery
removeAttr(
name 
)
jQuery
attr(
props 
)
Attr
attr(
name 
)
Object jQuery
removeClass([
class 
])addClass(
class 
)
Class
hasClass(
class 
)
Boolean jQuery jQuery
toggleClass(
class 
)
jQuery jQuery
html(
value 
)
HTML
html()
String jQuery
text(
value 
)
Text
text()
String jQuery
toggleClass(
class 
,
switch 
)
FUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNS
Value
val()
String, Array
FUNCTION RETURNS
Traversing
offsetParent()
jQuery
prevAll([
expr 
])
jQuery
filter(
func 
)
Filtering
filter(
expr 
)
jQuery jQuery
is(
expr 
)
Boolean
map(
func 
)
jQuery
not(
expr 
)
jQuery
slice(
start 
,[
end 
])
jQuery
children([
expr 
])
Finding
add(
expr 
)
jQuery jQuery
closest([
expr 
])
jQuery
contents()
jQuery
find(
expr 
)
jQuery
next([
expr 
])
jQuery
nextAll([
expr 
])
jQuery
parent([
expr 
])
jQuery
parents([
expr 
])
jQuery
prev([
expr 
])
jQuery
siblings([
expr 
])
jQuery
end()
Chaining
andSelf()
jQuery jQuery
FUNCTION RETURNSFUNCTION RETURNSFUNCTION RETURNS
Selectors
:visible
Visibility Filters
:hidden
Array<Element>Array<Element>
[
attr 
=
value 
]
2
Attribute Filters
[
attr 
]
2
Array<Element>Array<Element>
[
attr 
!=
value 
]
2
Array<Element>
[
attr 
^=
value 
]
2
Array<Element>
[
attr 
$=
value 
]
2
Array<Element>
[
attr 
*=
value 
]
2
Array<Element>
[
attr1
][
attr2 
][
attrN 
]
2
Array<Element>
:last-child:first-child
Child Filters
:nth-child(
index 
|
even 
|
odd 
|
equation 
)
Array<Element>Array<Element>Array<Element>
:only-child
Array<Element>
name 
#
id 
.
class selector1, selectorN 
Basic
*
previous next parent 
>
child previous siblings 
Hierarchy
ancestor descendant 
Array<Element>Array<Element>Array<Element>Array<Element>Array<Element>Array<Element>Array<Element>Array<Element>Array<Element>
:not(
selector 
):last:even
Basic Filters
:first
Array<Element>Array<Element>Array<Element>Array<Element>
:odd
Array<Element>
:eq(
index 
)
Array<Element>
:gt(
index 
)
Array<Element>
:lt(
index 
)
Array<Element>
:header
Array<Element>
:animated
Array<Element>
:text:input
Forms
:hidden
Array<Element>Array<Element>Array<Element>
:password
Array<Element>
:image:radio:checkbox
Array<Element>Array<Element>Array<Element>
:file
Array<Element>
:submit:button
Array<Element>Array<Element>
:reset
Array<Element>
:checked:disabled
Form Filters
:enabled
Array<Element>Array<Element>Array<Element>
:selected
Array<Element>
:has(
selector 
):empty
Content Filters
:contains(
text 
)
Array<Element>Array<Element>Array<Element>
SELECTOR RETURNSSELECTOR RETURNSSELECTOR RETURNSSELECTOR RETURNSSELECTOR RETURNSSELECTOR RETURNSSELECTOR RETURNSSELECTOR RETURNSSELECTOR RETURNS
2) The [@attr] style selectors were removed in jQuery 1.3
:parent
Array<Element>
val(
value 
)
jQuery
SYNTAX DESCRIPTION SYNTAX DESCRIPTIONSYNTAX DESCRIPTION

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->