jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery Misc index() Method

jQuery index() Method



The index() method is used to return the index position of specified elements relative to other specified elements. It can be specified by jQuery Selectors or DOM elements. If that element is not found, the index() method will return -1.




Its syntax is:- $(selector).index(element)


Further Explanation:-


Parameter Description
element Optional. Specifies the element to get the index position.

Code Explanation

All Tutorials related to jQuery Methods and Properties

All Sections related to Jquery