Side navigation
#13673 closed feature (wontfix)
Opened March 27, 2013 07:09AM UTC
Closed March 27, 2013 01:58PM UTC
some proposals on method "index"
Reported by: | GolubevS79@gmail.com | 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 :)
My first proposal has to be removed due to the same method signature