Home >Web Front-end >JS Tutorial >Jquery index() method obtains the index value of the corresponding element_jquery
index([subject]) method, return value: Number (counting from 0)
index() method returns the index position of the specified element relative to other specified elements. Note: index() will return -1 if the element is not found.