Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Introduction
Webconcept

Description

The .eq() method is used to reduce the set of matched elements to the one at the specified index.


v1.1.2

This method has the form:

.eq(index)
Parameter Description
index (required) Specifies an integer indicating the 0-based position of the element

Return Value

This form returns a jQuery object.


v1.4

This method has an alternate form:

.eq(-index)
Parameter Description
-index (required) Specifies an integer indicating the position of the element, counting backwards from the last element in the set

Return Value

This form returns a jQuery object.

Description

The .filter() method is used to reduce the set of matched elements to those that match the selector or pass the function's test.


v1.0

This method has the form:

.filter(selector)
Parameter Description
selector (required) Specifies a string containing a selector expression to match the current set of elements against

Return Value

This form returns a jQuery object.


v1.0

This method has an alternate form:

.filter(function(index))
Parameter Description
function(index) (required) Specifies a function used as a test for each element in the set. this is the current DOM element

Return Value

This form returns a jQuery object.


v1.4

This method has an alternate form:

.filter(element)
Parameter Description
element (required) Specifies an element to match the current set of elements against

Return Value

This form returns a jQuery object.


v1.4

This method has an alternate form:

.filter(jQuery object)
Parameter Description
jQuery object (required) Specifies an existing jQuery object to match the current set of elements against

Return Value

This form returns a jQuery object.

Description

The .first() method is used to reduce the set of matched elements to the first in the set.


v1.4

This method has the form:

.first()

Return Value

This form returns a jQuery object.

Description

The .has() method is used to get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.


v1.4

This method has the form:

.has(selector)
Parameter Description
selector (required) Specifies a string containing a selector expression to match the current set of elements against

Return Value

This form returns a jQuery object.


v1.4

This method has an alternate form:

.has(contained)
Parameter Description
contained (required) Specifies a DOM element to match elements against

Return Value

This form returns a jQuery object.

Description

The .is() method is used to check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.


v1.0

This method has the form:

.is(selector)
Parameter Description
selector (required) Specifies a string containing a selector expression to match the current set of elements against

Return Value

This form returns a jQuery object.


v1.6

This method has an alternate form:

.is(function(index))
Parameter Description
function(index) (required) Specifies a function used as a test for the set of elements. It accepts one argument, index, which is the element's index in the jQuery collection. Within the function, this refers to the current DOM element

Return Value

This form returns a jQuery object.


v1.6

This method has an alternate form:

.is(element)
Parameter Description
element (required) Specifies an element to match the current set of elements against

Return Value

This form returns a jQuery object.


v1.6

This method has an alternate form:

.is(jQuery object)
Parameter Description
jQuery object (required) Specifies an existing jQuery object to match the current set of elements against

Return Value

This form returns a jQuery object.

Description

The .last() method is used to reduce the set of matched elements to the final one in the set.


v1.4

This method has the form:

.last()

Return Value

This form returns a jQuery object.

Description

The .map() method is used to iterate over a jQuery object, executing a function for each matched element.


v1.2

This method has the form:

.map(callback(index, domElement) )
Parameter Description
callback(index, domElement) (optional) Specifies a function object that will be invoked for each element in the current set

Return Value

This form returns a jQuery object.

Description

The .not() method is used to remove elements from the set of matched elements./p>


v1.0

This method has the form:

.not(selector)
Parameter Description
selector (required) Specifies a string containing a selector expression to match elements against

Return Value

This form returns a jQuery object.


v1.4

This method has an alternate form:

.not(function(index))
Parameter Description
function(index) (required) Specifies a function used as a test for each element in the set. this is the current DOM element

Return Value

This form returns a jQuery object.


v1.0

This method has an alternate form:

.not(elements)
Parameter Description
elements (required) Specifies one or more DOM elements to remove from the matched set

Return Value

This form returns a jQuery object.

Description

The .slice() method is used to reduce the set of matched elements to a subset specified by a range of indices.


v1.1.4

This method has the form:

.slice(start [, end])
Parameter Description
start (required) Specifies an integer indicating the 0-based position at which the elements begin to be selected. If negative, it indicates an offset from the end of the set
end (optional) Specifies an integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set.

Return Value

This form returns a jQuery object.

Examples

Select all paragraphs, then slice the selection to include only the first element:

$("p").slice(0, 1).wrapInner("<b></b>");