Jquery 1.3 Cheat Sheet

ADVERTISEMENT

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

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 2