Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript and the DOM (Retiring) Responding to User Interaction The Event Object

Michal Janek
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Michal Janek
Front End Web Development Techdegree Graduate 30,654 Points

Practice on "Bubbling" concept?

For some reason, I believe that this bubbling concept and especially all the list items getting event handlers not only the ones created at the beginning is incredibly important. Would love to solidify this knowledge. Any leads on practice ideas?

Not sure on practice specifically, but this Smashing Magazine article provides a detailed explanation of DOM events and the event cycle (bubbling is only one of the 3 phases of the event cycle).

2 Answers

Brendan Moran
Brendan Moran
14,052 Points

Also, there are CSS pseudo classes that can do some of this for us. E.g. changing colors or opacity on hover or click. The UPPERCASE text example in the video is good, because this can only be done with javaScript. While practicing this, make sure you aren't doing something that could be done much more easily with a CSS rule.

Brendan Moran
Brendan Moran
14,052 Points

Create a little mock page in jsfiddle or codepen and go to town!