Skip to content

Commit c8e4b61

Browse files
committed
Merge pull request #163 from spike01/patch-1
Update tutorial.md
2 parents 7cdbd11 + bac5753 commit c8e4b61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/lesson3/tutorial.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ When we click on the Pending label, we want to set items to complete. We will do
221221

222222
> Use `$(this)` to access the element that the event was triggered from.
223223
224+
Try this in the console:
225+
224226
First of all, bind a **click** event to the span we've added using its class with the `on()` function. As `<li>` is the parent node of the <span> element, we can access it using `parent()` (which is equivalent to `parentNode`
225227
that we've used in the previous lesson).
226228

0 commit comments

Comments
 (0)