Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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 January 13, 2023 7:57pm 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 August 3, 2022 9:08pm 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 May 7, 2022 1:19am 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 September 30, 2021 4:26pm 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 June 20, 2021 7:27pm 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 February 17, 2021 4:54am 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 October 13, 2019 12:33am 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 July 12, 2019 1:14pm 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 March 17, 2019 6:56pm 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 February 28, 2019 10:49pm 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 September 13, 2018 11:20pm 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 September 5, 2018 9:08pm 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 August 17, 2018 1:22pm 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 March 5, 2018 11:30pm 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 August 16, 2017 6:01pm 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 August 13, 2017 7:51pm 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 July 4, 2017 10:24pm 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 May 24, 2017 6:06pm 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 March 6, 2017 9:40pm 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 February 24, 2017 3:59pm 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 January 18, 2017 5:56am 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord