Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13673 closed feature (wontfix)

some proposals on method "index"

Reported by: GolubevS79@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

1) .index( selector ) - add variant in which elements set precedes method call; i.e. now it works $("li.myClass").index("li"), and suggested variant - $("li").index("li.myClass"); 2) .index (element) - update this variant to allow elements array; i.e. now it works $("li").index(document.getElementsByClassName("myClass")[0]), and updated variant - $("li").index(document.getElementsByClassName("myClass")) (only first element of array would be considered)

Sorry for my english :)

Change History (2)

comment:1 Changed 7 years ago by GolubevS79@…

My first proposal has to be removed due to the same method signature

comment:2 Changed 7 years ago by Rick Waldron

Resolution: wontfix
Status: newclosed

Thanks for the contributions! jQuery will not be adding or modifying the API surface in the foreseeable future

Note: See TracTickets for help on using tickets.