index
UK[ˈɪndeks] US[ˈɪnˌdɛks]
n.index;<number>index;indication;sign
vt. Index...; Index...; [Economics] Adjust according to living index (wages, prices, etc.)
vi.[Mechanics] Transposition
jquery index() method syntax
Function: index() method returns the index position of the specified element relative to other specified elements. These elements can be specified via jQuery selectors or DOM elements. If the element is not found, index() will return -1.
The index of the first matching element is equivalent to the sibling element: Get the index position of the first matching element relative to its sibling elements.
Syntax: $(selector).index()
The index of the element, equivalent to the selector: Get the element relative to The index position of the selector. The element can be specified via a DOM element or a jQuery selector.
Syntax: $(selector).index(element)
##Parameters:
Description | |
Optional. Specifies the element to obtain the index position. Can be a DOM element or a jQuery selector. |