Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 29 / 8733%
Events9/9

The Event Object

e.target, e.currentTarget, e.preventDefault(), e.stopPropagation().

// $('#list').on('click', 'li.task', fn) — one handler, any number of children#list — ONE bound handler.on('click', 'li.task', toggleDone)<li.task><li.task><li.task><li.task><li.task> (new)Click a step to walk through event delegation.
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?