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
  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    What does the " span.textContent = text " works here?

    Posted March 30, 2021 1:37am by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • Sadaf Partovi
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Sadaf Partovi
    Front End Web Development Techdegree Graduate 14,594 Points

    Edit Button

    Posted December 27, 2020 11:40pm by Sadaf Partovi
    .a{fill-rule:evenodd;}techdegree seal-36
    Sadaf Partovi
    Front End Web Development Techdegree Graduate 14,594 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • sanjeshwari Nand
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    sanjeshwari Nand
    Full Stack JavaScript Techdegree Student 4,673 Points

    my name/input value keeps disappearing after i edit, please help

    Posted September 16, 2020 5:35pm by sanjeshwari Nand
    .a{fill-rule:evenodd;}techdegree
    sanjeshwari Nand
    Full Stack JavaScript Techdegree Student 4,673 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    2 Answers

  • Siddharth Pandey
    Siddharth Pandey
    7,280 Points

    Why does this not work for creating a save state?

    Posted July 23, 2019 4:47pm by Siddharth Pandey
    Siddharth Pandey
    7,280 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • Jesse Vorvick
    Jesse Vorvick
    6,047 Points

    My Solution

    Posted July 9, 2019 5:46pm by Jesse Vorvick
    Jesse Vorvick
    6,047 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • Dilip Agheda
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Dilip Agheda
    Full Stack JavaScript Techdegree Graduate 28,581 Points

    Bug in the video and project files

    Posted November 13, 2018 8:44am by Dilip Agheda
    .a{fill-rule:evenodd;}techdegree seal-36
    Dilip Agheda
    Full Stack JavaScript Techdegree Graduate 28,581 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • Myles Young
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Myles Young
    Full Stack JavaScript Techdegree Graduate 22,056 Points

    I got it (with some help) check my comments for how It is done, and what is doing what!

    Posted August 20, 2018 2:17pm by Myles Young
    .a{fill-rule:evenodd;}techdegree seal-36
    Myles Young
    Full Stack JavaScript Techdegree Graduate 22,056 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • charlotte `Sukhraj
    charlotte `Sukhraj
    7,570 Points

    Edit Button Error ...

    Posted July 18, 2018 4:20am by charlotte `Sukhraj
    charlotte `Sukhraj
    7,570 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

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

    Moving to an edit state

    Posted July 9, 2018 10:37am by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    0 Answers

  • Bob Allan
    Bob Allan
    10,900 Points

    Why is my text not replaced with an input element?

    Posted May 6, 2018 6:01pm by Bob Allan
    Bob Allan
    10,900 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • Saqib Ishfaq
    Saqib Ishfaq
    13,912 Points

    my solution

    Posted January 11, 2018 10:12am by Saqib Ishfaq
    Saqib Ishfaq
    13,912 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    0 Answers

  • SAMUEL LAWRENCE
    PLUS
    SAMUEL LAWRENCE
    Courses Plus Student 8,447 Points

    woohooooo, I did it.

    Posted January 5, 2018 7:02am by SAMUEL LAWRENCE
    SAMUEL LAWRENCE
    Courses Plus Student 8,447 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • Daniel McHugh
    Daniel McHugh
    1,821 Points

    Can someone walk me through exactly what we did here in terms of what caused what?

    Posted November 16, 2017 11:22pm by Daniel McHugh
    Daniel McHugh
    1,821 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • nico dev
    nico dev
    20,364 Points

    insertBefore() + removeChild != replaceChild() ?

    Posted August 23, 2017 11:21am by nico dev
    nico dev
    20,364 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • Tomasz Cysewski
    Tomasz Cysewski
    2,736 Points

    Input element is not working properly

    Posted April 27, 2017 2:30pm by Tomasz Cysewski
    Tomasz Cysewski
    2,736 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

  • Sergi Oca
    Sergi Oca
    7,981 Points

    Code could be simpler?

    Posted January 16, 2017 8:44am by Sergi Oca
    Sergi Oca
    7,981 Points
    • JavaScript
    • DOM Scripting By Example
    • Editing and Filtering Names
    • Moving to an Editing State

    1 Answer

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