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
  • jason limmm
    jason limmm
    8,009 Points

    need help with this challenge

    Posted August 10, 2024 4:39am by jason limmm
    jason limmm
    8,009 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Adlan Ilyasov
    Adlan Ilyasov
    2,476 Points

    Im kinda lost on this one. Anyone can throw in a few examples and hints?

    Posted November 23, 2022 2:24am by Adlan Ilyasov
    Adlan Ilyasov
    2,476 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    2 Answers

  • Patrick Thomas
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Patrick Thomas
    Full Stack JavaScript Techdegree Student 3,529 Points

    So, I am wondering do I need to delete the submitButton element?

    Posted July 26, 2022 1:41pm by Patrick Thomas
    .a{fill-rule:evenodd;}techdegree
    Patrick Thomas
    Full Stack JavaScript Techdegree Student 3,529 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Khaled Kadri
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Khaled Kadri
    Web Development Techdegree Student 6,756 Points

    Dom Scripting Challenge task 2/2

    Posted March 20, 2022 4:17am by Khaled Kadri
    .a{fill-rule:evenodd;}techdegree
    Khaled Kadri
    Web Development Techdegree Student 6,756 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • ramy rahmiel
    ramy rahmiel
    11,797 Points

    what is wrong with my code?

    Posted May 1, 2020 12:53pm by ramy rahmiel
    ramy rahmiel
    11,797 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    2 Answers

  • Olive Bamurange
    Olive Bamurange
    5,174 Points

    Hi there! This challenge keeps asking to addEventListener to form and I think there is one. help me please!

    Posted October 30, 2019 4:29pm by Olive Bamurange
    Olive Bamurange
    5,174 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    2 Answers

  • salahuddin Sediqi
    salahuddin Sediqi
    3,410 Points

    Hello Everyone, I really didn't understand, why should we write (e) paramater inside function?

    Posted March 28, 2019 4:28pm by salahuddin Sediqi
    salahuddin Sediqi
    3,410 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    2 Answers

  • Emily DeWitt
    Emily DeWitt
    4,210 Points

    Why am I getting the message "You didn't use addEventListener on the form." when it is definitely on the form?

    Posted February 18, 2019 4:53pm by Emily DeWitt
    Emily DeWitt
    4,210 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Zaria Sellers
    Zaria Sellers
    3,536 Points

    help please!!!!!

    Posted February 7, 2019 10:54pm by Zaria Sellers
    Zaria Sellers
    3,536 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • patrick shangala
    patrick shangala
    6,217 Points

    can't understand the question someone to help me out with this problem

    Posted August 9, 2018 8:20am by patrick shangala
    patrick shangala
    6,217 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    2 Answers

  • Seth Pabst
    Seth Pabst
    10,285 Points

    I have no clue what the question is asking??

    Posted June 2, 2018 2:41am by Seth Pabst
    Seth Pabst
    10,285 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Ali Sh
    Ali Sh
    2,026 Points

    What does the challenge need??

    Posted May 10, 2018 11:04pm by Ali Sh
    Ali Sh
    2,026 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Prerna Jena
    Prerna Jena
    384 Points

    Alter the event handler

    Posted February 2, 2018 12:12pm by Prerna Jena
    Prerna Jena
    384 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    4 Answers

  • steve thomas
    steve thomas
    9,753 Points

    Challenge Task 2 of 2 Using the event object, ensure that the brower will not submit

    Posted July 21, 2017 1:48am by steve thomas
    steve thomas
    9,753 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Keno Aguiar
    Keno Aguiar
    4,741 Points

    This is weird

    Posted June 2, 2017 11:46pm by Keno Aguiar
    Keno Aguiar
    4,741 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    2 Answers

  • Sridhar Rameshwaram
    Sridhar Rameshwaram
    934 Points

    Am getting this error - You didn't use addEventListener on the form - though am using button with Submit value

    Posted May 9, 2017 2:39am by Sridhar Rameshwaram
    Sridhar Rameshwaram
    934 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Alexisca hall
    Alexisca hall
    23,683 Points

    Alter the callback function to use the event object. Using the event object, ensure that the browser's default form subm

    Posted March 20, 2017 1:31pm by Alexisca hall
    Alexisca hall
    23,683 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Alexisca hall
    Alexisca hall
    23,683 Points

    Alter the callback function to use the event object. Using the event object, ensure that the browser's default form subm

    Posted March 17, 2017 3:47pm by Alexisca hall
    Alexisca hall
    23,683 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    3 Answers

  • manasa sharma
    manasa sharma
    380 Points

    how do i alter the event Handler when form is submitted

    Posted March 17, 2017 4:22am by manasa sharma
    manasa sharma
    380 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    1 Answer

  • Matthew Hung
    Matthew Hung
    3,066 Points

    Using the submit Event

    Posted February 28, 2017 7:18pm by Matthew Hung
    Matthew Hung
    3,066 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    2 Answers

  • Alexisca hall
    Alexisca hall
    23,683 Points

    Alter the event handler on line 4 to run when the form is submitted, not just when the submit button has been clicked. L

    Posted February 13, 2017 5:44pm by Alexisca hall
    Alexisca hall
    23,683 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    3 Answers

  • shobha gunupuru
    shobha gunupuru
    1,137 Points

    Alter the event handler on line 4 to run when the form is submitted, not just when the submit button has been clicked. L

    Posted January 25, 2017 9:53pm by shobha gunupuru
    shobha gunupuru
    1,137 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Using the submit Event

    5 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