✨ 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
    • Adding and Removing Names
    • Using the submit Event
    • Close
  • jason limmm
    jason limmm
    8,009 Points

    need help with this challenge

    Posted on Aug 10, 2024 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 on Nov 23, 2022 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 on Jul 26, 2022 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 on Mar 20, 2022 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 on May 1, 2020 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 on Oct 30, 2019 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 on Mar 28, 2019 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 on Feb 18, 2019 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 on Feb 7, 2019 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 on Aug 9, 2018 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 on Jun 2, 2018 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 on May 10, 2018 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 on Feb 2, 2018 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 on Jul 21, 2017 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 on Jun 2, 2017 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 on May 9, 2017 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 on Mar 20, 2017 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 on Mar 17, 2017 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 on Mar 17, 2017 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 on Feb 28, 2017 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 on Feb 13, 2017 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 on Jan 25, 2017 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.

    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.