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

🤑 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

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

  • 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
    • Showing results for:
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application
    • Close
  • Hannah Cherba
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Hannah Cherba
    Front End Web Development Techdegree Graduate 14,319 Points

    Both buttons appear, but edit button won't post to console

    Posted on Jan 13, 2023 by Hannah Cherba
    .a{fill-rule:evenodd;}techdegree seal-36
    Hannah Cherba
    Front End Web Development Techdegree Graduate 14,319 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • Kade Rathbun
    Kade Rathbun
    6,586 Points

    Writing if statement this way?

    Posted on Aug 3, 2022 by Kade Rathbun
    Kade Rathbun
    6,586 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • Tyler McDonald
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Tyler McDonald
    Full Stack JavaScript Techdegree Graduate 16,700 Points

    Declaring constants in the edit/remove buttons event handler

    Posted on May 7, 2022 by Tyler McDonald
    .a{fill-rule:evenodd;}techdegree seal-36
    Tyler McDonald
    Full Stack JavaScript Techdegree Graduate 16,700 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • James Crouse
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    James Crouse
    Full Stack JavaScript Techdegree Student 3,289 Points

    Buttons stopped working

    Posted on Sep 30, 2021 by James Crouse
    .a{fill-rule:evenodd;}techdegree
    James Crouse
    Full Stack JavaScript Techdegree Student 3,289 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • Calvin Luo
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Calvin Luo
    Full Stack JavaScript Techdegree Student 11,952 Points

    Where the button is located

    Posted on Jun 20, 2021 by Calvin Luo
    .a{fill-rule:evenodd;}techdegree
    Calvin Luo
    Full Stack JavaScript Techdegree Student 11,952 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • Karl Russell Sumando Menil
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Karl Russell Sumando Menil
    Full Stack JavaScript Techdegree Student 4,004 Points

    my workspace is not working but when i check visual studio code it works, what should i do?

    Posted on Feb 17, 2021 by Karl Russell Sumando Menil
    .a{fill-rule:evenodd;}techdegree
    Karl Russell Sumando Menil
    Full Stack JavaScript Techdegree Student 4,004 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    0 Answers

  • Jamie Gobeille
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jamie Gobeille
    Full Stack JavaScript Techdegree Graduate 19,573 Points

    Alternative solution

    Posted on Oct 13, 2019 by Jamie Gobeille
    .a{fill-rule:evenodd;}techdegree seal-36
    Jamie Gobeille
    Full Stack JavaScript Techdegree Graduate 19,573 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • <noob />
    <noob />
    17,063 Points

    further explanation of the use of the e.target.

    Posted on Jul 12, 2019 by <noob />
    <noob />
    17,063 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • Hamzah Iqbal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 329 Points

    The remove button, stopped working all of a sudden. Can´t seem to understand why?

    Posted on Mar 17, 2019 by Hamzah Iqbal
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 329 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • Colin Sandlin
    Colin Sandlin
    4,512 Points

    Can't get my edit button to log to console

    Posted on Feb 28, 2019 by Colin Sandlin
    Colin Sandlin
    4,512 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    2 Answers

  • Nicholas Wallen
    Nicholas Wallen
    12,278 Points

    Within the ul event listener, why is li referred to as a parent of ul? Isn't it the opposite?

    Posted on Sep 13, 2018 by Nicholas Wallen
    Nicholas Wallen
    12,278 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    4 Answers

  • Nicholas Smay
    Nicholas Smay
    14,768 Points

    What does the "e" parameter located in the event listener do?

    Posted on Sep 5, 2018 by Nicholas Smay
    Nicholas Smay
    14,768 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • Kevin Nunley
    Kevin Nunley
    5,373 Points

    Why wouldn't we just give the edit and remove buttons classes and check for that?

    Posted on Aug 17, 2018 by Kevin Nunley
    Kevin Nunley
    5,373 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    1 Answer

  • Arnold Nunez
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Arnold Nunez
    Front End Web Development Techdegree Student 9,494 Points

    Why don't my buttons work?

    Posted on Mar 5, 2018 by Arnold Nunez
    .a{fill-rule:evenodd;}techdegree
    Arnold Nunez
    Front End Web Development Techdegree Student 9,494 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    2 Answers

  • paulscanlon
    PLUS
    paulscanlon
    Courses Plus Student 26,735 Points

    Bad Practice?

    Posted on Aug 16, 2017 by paulscanlon
    paulscanlon
    Courses Plus Student 26,735 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    4 Answers

  • shirshah sahel
    shirshah sahel
    10,035 Points

    My edit and remove buttons are not working.

    Posted on Aug 13, 2017 by shirshah sahel
    shirshah sahel
    10,035 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    3 Answers

  • Susan Rusie
    Susan Rusie
    10,671 Points

    What is going on with my application?

    Posted on Jul 4, 2017 by Susan Rusie
    Susan Rusie
    10,671 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    2 Answers

  • cyber voyager
    cyber voyager
    8,859 Points

    Scope related question, return explanation

    Posted on May 24, 2017 by cyber voyager
    cyber voyager
    8,859 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    2 Answers

  • Luca Di Pinto
    Luca Di Pinto
    8,051 Points

    Why do we use "else if" and not "else"?

    Posted on Mar 6, 2017 by Luca Di Pinto
    Luca Di Pinto
    8,051 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    3 Answers

  • Nick Wilson
    Nick Wilson
    5,060 Points

    I don't understand a couple things.

    Posted on Feb 24, 2017 by Nick Wilson
    Nick Wilson
    5,060 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    4 Answers

  • Sam Finn
    Sam Finn
    868 Points

    if statement for button event handler

    Posted on Jan 18, 2017 by Sam Finn
    Sam Finn
    868 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • States of the Application

    3 Answers

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.