Skip to content

Commit 542da06

Browse files
committed
Code example was broken. Added missing closing bracket to example.
1 parent 6a3213b commit 542da06

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)