diff --git a/entries/index.xml b/entries/index.xml index 3cdef58d..cc7b2cd9 100644 --- a/entries/index.xml +++ b/entries/index.xml @@ -68,7 +68,7 @@ alert('Index: ' + listItem.index('li')); Index: 1
If we omit the argument, .index()
will return the position of the first element within the set of matched elements in relation to its siblings:
alert('Index: ' + $('#bar').index();
+ alert('Index: ' + $('#bar').index());
Again, we get back the zero-based position of the list item:
Index: 1