XSolve sp z o o. ul. Zawiszy Czarnego 4/4, 44-100 Gliwice




старонка1/4
Дата канвертавання22.04.2016
Памер318.84 Kb.
  1   2   3   4

XSolve sp. z o.o. ul. Zawiszy Czarnego 4/4, 44-100 Gliwice

jQuery 1.3.2 Doc

Core

jQuery Function

jQuery Object Accessors

Function

Returns

Function

Returns

$( expressioncontext )

jQuery

each( callback )

jQuery

This function accepts a string containing a CSS selector which is then used to match a set of elements.

Execute a function within the context of every matched element.

$( html, ownerDocument )

jQuery

size( )

Number

Create DOM elements on-the-fly from the provided String of raw HTML.

The number of elements in the jQuery object.

$( elements )

jQuery

length

Number

Wrap jQuery functionality around a single or multiple DOM Element(s).

The number of elements in the jQuery object.

$( callback )

jQuery

selector

String

A shorthand for $(document).ready().

New in jQuery 1.3 A selector representing selector originally passed to jQuery().

Data

context

Element

data(name)

Any

New in jQuery 1.3 The DOM node context originally passed to jQuery() (if none was passed then context will be equal to the document).

Returns value at named data store for the element, as set by data(name, value).

eq( position )

jQuery

data(name, value)

jQuery

Reduce the set of matched elements to a single element.

Stores the value in the named spot.

get( )

Array

removeData(name)

jQuery

Access all matched DOM elements.

Removes named data store from an element.

get( index )

Element

queue(name)

Array(Function)

Access a single matched DOM element at a specified index in the matched set.

Returns a reference to the first element's queue (which is an array of functions).

index( subject )

Number

queue(name, callback)

jQuery

Searches every matched element for the object and returns the index of the element, if found, starting with zero. If a jQuery object is passed, only the first element is checked.

Adds a new function, to be executed, onto the end of the queue of all matched elements.

Plugins

queue(name, queue)

jQuery

jQuery.fn.extend( object )

jQuery

Replaces the queue of all matched element with this new queue (the array of functions).

jQuery.extend( object )

jQuery

dequeue(name)

jQuery

Interoperability

Removes a queued function from the front of the queue and executes it.

jQuery.noConflict( )

jQuery

Plugins

Run this function to give control of the $ variable back to whichever library first implemented it.

jQuery.fn.extend( object )

jQuery

jQuery.noConflict( extreme )

jQuery

Extends the jQuery element set to provide new methods (used to make a typical jQuery plugin).

Revert control of both the $ and jQuery variables to their original owners. Use with discretion.

jQuery.extend( object )

jQuery







Extends the jQuery object itself.







Selectors

Basics

Hierarchy

Function

Returns

Function

Returns

#id

Array

ancestor descendant

Array

Matches a single element with the given id attribute.

Matches all descendant elements specified by "descendant" of elements specified by "ancestor".

element

Array

parent > child

Array

Matches all elements with the given name.

Matches all child elements specified by "child" of elements specified by "parent".

.class

Array

prev + next

Array

Matches all elements with the given class.

Matches all next elements specified by "next" that are next to elements specified by "prev".

.class.class

Array

prev ~ siblings

Array

Matches all elements with the given classes.

Matches all sibling elements after the "prev" element that match the filtering "siblings" selector.

*

Array

Content Filters

Matches all elements.

:contains(text)

Array

selector1, selector2, selectorN

Array

Matches elements which contain the given text.

Matches the combined results of all the specified selectors.

:empty

Array

Basic Filters

Matches all elements that have no children (including text nodes).

:first

Array

:has(selector)

Array

Matches the first selected element.

Matches elements which contain at least one element that matches the specified selector.

:last

Array

:parent

Array

Matches the last selected element.

Matches all elements that are parents - they have child elements, including text.

:not(selector)

Array

Visibility Filters

Filters out all elements matching the given selector.

:hidden

Array

:even

Array

Matches all elements that are hidden.

Matches even elements, zero-indexed. See also odd

:visible

Array

:odd

Array

Matches all elements that are visible.

Matches odd elements, zero-indexed. See also even.

Attribute Filters

:eq(index)

Array

Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your selectors in order to make them work again.

Matches a single element by its index.

[attribute]

Array

:gt(index)

Array

Matches elements that have the specified attribute.

Matches all elements with an index above the given one.

[attribute=value]

Array

:lt(index)

Array

Matches elements that have the specified attribute with a certain value.

Matches all elements with an index below the given one.

[attribute!=value]

Array

:header

Array

Matches elements that either don't have the specified attribute or do have the specified attribute but not with a certain value.

Matches all elements that are headers, like h1, h2, h3 and so on.

[attribute^=value]

Array

:animated

Array

Matches elements that have the specified attribute and it starts with a certain value.

Matches all elements that are currently being animated.

[attribute$=value]

Array

Child Filters

Matches elements that have the specified attribute and it ends with a certain value.

:nth-child(index/even/odd/equation)

Array

[attribute*=value]

Array

Matches all elements that are the nth-child of their parent or that are the parent's even or odd children.

Matches elements that have the specified attribute and it contains a certain value.


:first-child

Array



[attributeFilter1]

[attributeFilter2]

[attributeFilterN]

Array



Matches all elements that are the first child of their parent.

Matches elements that match all of the specified attribute filters.

:last-child

Array







Matches all elements that are the last child of their parent.







:only-child

Array







Matches all elements that are the only child of their parent.






  1   2   3   4


База данных защищена авторским правом ©shkola.of.by 2016
звярнуцца да адміністрацыі

    Галоўная старонка