Skip to content

Commit 8ae3e01

Browse files
committed
Merge pull request #60 from easternbloc/master
Fix broken example in .index(). Thanks @easternbloc. We can revisit the merits of using something other than alert() another time.
2 parents 8d17967 + 542da06 commit 8ae3e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ alert('Index: ' + listItem.index('li'));
6868
<span class="output">Index: 1</span>
6969
</p>
7070
<p>If we omit the argument, <code>.index()</code> will return the position of the first element within the set of matched elements in relation to its siblings:</p>
71-
<pre><code>alert('Index: ' + $('#bar').index();</code></pre>
71+
<pre><code>alert('Index: ' + $('#bar').index());</code></pre>
7272
<p>Again, we get back the zero-based position of the list item:</p>
7373
<p>
7474
<span class="output">Index: 1</span>

0 commit comments

Comments
 (0)