Skip to content

article on index() - index() with no arg now implicitly calls first() not last from jQuery 1.91 #276

Closed
@trystanclarke

Description

@trystanclarke

Hi, I just noticed this while trying out the code snippets on jsFiddle - it seems that .index() returns the index of the first item not the last item as of jQuery 1.91. If you run the snippet using 1.83 it uses the last one.

This is on the page at http://learn.jquery.com/using-jquery-core/understanding-index/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions