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 trialMichal Janek
Front End Web Development Techdegree Graduate 30,654 PointsPractice 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?
2 Answers
Brendan Moran
14,052 PointsAlso, 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
14,052 PointsCreate a little mock page in jsfiddle or codepen and go to town!
John Smith
Courses Plus Student 32 PointsJohn Smith
Courses Plus Student 32 PointsNot 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).