av vacuus jp för 12 årar sedan
2687
Mer av detta
load([eventData], handler(eventObject))
load(handler(eventObject))
shortcut for: bind('load', eventHandler)
resize()
shortcut for: trigger('resize')
resize([eventData], handler(eventObject))
resize(eventObject)
shortcut for: bind('resize', handler)
error([eventData], handler(eventObject))
error(handler(eventObject))
shortcut for: bind('error',handler)
Note: returns an object containing two properties top and left
Note: contains an element and its padding and border and also contains its margin if passed true
Note: contains a element and its padding
attr(attrName, function(index, attr))
attr(map)
attr(attrName, value)
attr(attrName)
toggleClass(function(index, class,switch) [, switch])
toggleClass(switch)
toggleClass(className, switch)
toggleClass(className)
addClass(funnction(index, currentClass))
addClass(className)
Note: classname contains one ore more class names separated by blank
:header
:focus
:animated
:hidden
:visible
:nth-child
Note: 1-Indexed(from CSS3 Specification) Usage: :nth-child(3) :nth-child(3n+1) :nth-child(odd)
:only-child
:last-child
:first-child
:eq
:lt
:gt
:even
:odd
:last
:first
:parent
:empty
:contains(text)
[attrFilter1][attrFilter2]...[attrFilterN]
[attr$="value"]
[attr^="value"]
[attr|="value"]
[attr~="value"]
[attr*="value"]
[attr!="value"]
[attr="value"]
[attr]
ajaxStop(handler)
ajaxComplete(handler(data,xhr,ajaxOptions))
ajaxError(handler(event, jqXHR, ajaxSettings, thrownError))
ajaxSuccess(handler(data,xhr,ajaxOptions))
ajaxSend(handler(data,jqXHR, ajaxOptions))
ajaxStart(handler)
unwrap()
empty()
remove([selector])
detach([selector])
clone( [withDataAndEvents] [, deepWithDataAndEvents] )
replaceAll(selector)
replaceWith(function(index))
replaceWith(new Content)
wrapInner
wrapInner(function(index))
wrapInner(wrapping Element)
wrapAll
wrapAll(wrapping Element)
wrap
wrap(function(index))
wrap(wrapping Element)
text
text(function(i, string))
text(TextString)
text()
prependTo
prepend
appendTo
appendTo(target)
target: selector, DOMElement, jQueryObject, HTMLString
append
append(function(index, html))
append(content [, content])
content: HTMLString, DOMElement, jQueryObject
insertBefore
before
insertAfter
insertAfter(selector/DOMElement/jQueryObject/HTMLString)
after
after(HTMLString/DOMElement/jQueryObject [, content(one or more additional contents to be inserted; jQueryObjects, HTMLStrings,array of DOMElements)])
has(selector / DOM Element)
find(selector/element/jQueryObject)
closest([element/jQueryObject])
closest([selector/array of selectors] [, context])
siblings([selector])
children([selector])
nextUntil
nextUntil([selector / element/jQueryObject])
nextAll
nextAll([selector])
next([selector])
prevUntil
prevUntil([selector / element/jQueryObject], [filter])
prevAll
prevAll([selector])
prev([selector])
offsetParent
offsetParent()
parentsUntil
parentsUntil([selector / element/jQueryObject],[filter])
parents
parents([selector])
parent([selector])
slice(start [, end])
last()
first()
eq(index)
not(elements)
not(function(index))
not(selector)
filter(jQuery Object)
filter(element)
filter(function(index))
filter(selector)
each(function(index, element))
map(function(index, domElement))