🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Murilo de Melo
    Murilo de Melo
    14,456 Points

    Why the event listener was not applied directly to the <ul> element?

    Posted July 10, 2020 6:20pm by Murilo de Melo
    Murilo de Melo
    14,456 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    2 Answers

  • John Keenan
    John Keenan
    13,183 Points

    What is the difference between an ancestor and parent? How do ancestors, parents, and child elements relate?

    Posted July 6, 2019 8:41pm by John Keenan
    John Keenan
    13,183 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    2 Answers

  • vamosrope14
    vamosrope14
    14,932 Points

    Can an event occur on an element without an event listener being attached to it?

    Posted June 15, 2019 2:30pm by vamosrope14
    vamosrope14
    14,932 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    1 Answer

  • vamosrope14
    vamosrope14
    14,932 Points

    If the event moves to parent and ancestor elements, doesn't that mean the event handler code would act on all of them?

    Posted June 15, 2019 1:50pm by vamosrope14
    vamosrope14
    14,932 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    1 Answer

  • vamosrope14
    vamosrope14
    14,932 Points

    Is an event object always created after an event occurs on an element (mouseover, click)?

    Posted June 15, 2019 2:59am by vamosrope14
    vamosrope14
    14,932 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    1 Answer

  • vamosrope14
    vamosrope14
    14,932 Points

    Need clarification on event bubbling

    Posted June 15, 2019 2:57am by vamosrope14
    vamosrope14
    14,932 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    1 Answer

  • Heather Gray
    Heather Gray
    6,225 Points

    Why wouldn't you choose the <ul> ancestor instead of the <div>?

    Posted March 3, 2019 9:57pm by Heather Gray
    Heather Gray
    6,225 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    1 Answer

  • Hugo Javadi
    Hugo Javadi
    14,559 Points

    Why does Guil keep the index values?

    Posted December 15, 2018 11:28am by Hugo Javadi
    Hugo Javadi
    14,559 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    2 Answers

  • Aakash Srivastav
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points

    Event bubbling vs event capturing

    Posted May 15, 2018 7:03pm by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    2 Answers

  • paulos kesete
    PLUS
    paulos kesete
    Courses Plus Student 2,623 Points

    he did not elaborate important points. i think he just read something like outline and pass it simply.

    Posted March 8, 2018 9:16am by paulos kesete
    paulos kesete
    Courses Plus Student 2,623 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    8 Answers

  • Lee Cockcroft
    Lee Cockcroft
    10,278 Points

    Loop not working

    Posted September 13, 2017 1:33pm by Lee Cockcroft
    Lee Cockcroft
    10,278 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    1 Answer

  • Roudy Antenor
    Roudy Antenor
    4,124 Points

    Does Event Bubbling mean a click Event on an <li> element to turn it 'red',- can make all it's ancestors red as well??

    Posted July 7, 2017 6:44pm by Roudy Antenor
    Roudy Antenor
    4,124 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    3 Answers

  • Vic Mercier
    Vic Mercier
    3,276 Points

    Callback

    Posted June 28, 2017 8:07pm by Vic Mercier
    Vic Mercier
    3,276 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    1 Answer

  • Will Powers
    Will Powers
    6,612 Points

    Why use the <div> instead of <ul>?

    Posted June 12, 2017 1:26am by Will Powers
    Will Powers
    6,612 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    3 Answers

  • Can Tural
    Can Tural
    13,053 Points

    Loop Error

    Posted June 11, 2017 8:12am by Can Tural
    Can Tural
    13,053 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    3 Answers

  • Pranav Mathur
    Pranav Mathur
    3,419 Points

    Bubbling works from bottom of DOM tree upto the top, then how does selecting parent .listDIV apply to all list elements?

    Posted May 11, 2017 6:53am by Pranav Mathur
    Pranav Mathur
    3,419 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    2 Answers

  • Lee Zamastil
    Lee Zamastil
    21,628 Points

    Event Bubbling vs. Event Capturing

    Posted March 15, 2017 8:45pm by Lee Zamastil
    Lee Zamastil
    21,628 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    5 Answers

  • Owa Aquino
    Owa Aquino
    19,277 Points

    Sample Workspace Code doesn't work in my end.

    Posted February 15, 2017 3:39pm by Owa Aquino
    Owa Aquino
    19,277 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Event Bubbling and Delegation

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.