• Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Anna Fiialka
    Anna Fiialka
    2,855 Points

    Please help I can`t understand my task clearly. I need on the anchor to add new classList "selected". How I can do it?

    Posted September 19, 2016 12:17am by Anna Fiialka
    Anna Fiialka
    2,855 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    2 Answers

  • Anusha Singh
    PLUS
    Anusha Singh
    Courses Plus Student 22,106 Points

    Can you help??

    Posted May 2, 2016 4:46pm by Anusha Singh
    Anusha Singh
    Courses Plus Student 22,106 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    2 Answers

  • Anusha Singh
    PLUS
    Anusha Singh
    Courses Plus Student 22,106 Points

    Can you help??

    Posted May 2, 2016 4:40pm by Anusha Singh
    Anusha Singh
    Courses Plus Student 22,106 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    1 Answer

  • John Harles
    John Harles
    20,614 Points

    perform: changing classes challenge task 1

    Posted August 28, 2015 12:11am by John Harles
    John Harles
    20,614 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    0 Answers

  • Donald Richmond
    Donald Richmond
    13,807 Points

    How do you use the classList property to add a new class of "selected" to the anchor element???

    Posted July 6, 2015 1:45am by Donald Richmond
    Donald Richmond
    13,807 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    2 Answers

  • Bappy Golder
    Bappy Golder
    13,449 Points

    Not sure why this code is not passing and/or what I am getting wrong.

    Posted June 12, 2015 3:17am by Bappy Golder
    Bappy Golder
    13,449 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    1 Answer

  • Brian Bartlett
    Brian Bartlett
    20,278 Points

    Why doesn't this work for task2? anchor.classList.toggle("live");

    Posted March 26, 2015 10:41pm by Brian Bartlett
    Brian Bartlett
    20,278 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    2 Answers

  • San Francisco
    San Francisco
    28,373 Points

    Challenge Task 1 of 2 On line 5 of app.js, use the classList property on the anchor to add a new class of "selected"

    Posted March 26, 2015 8:20pm by San Francisco
    San Francisco
    28,373 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    1 Answer

  • Sally Gradle
    Sally Gradle
    24,694 Points

    Task 1 is to add class "selected" to anchor, but error references function "live"??

    Posted January 29, 2015 3:19am by Sally Gradle
    Sally Gradle
    24,694 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    1 Answer

  • Alexander Stanuga
    Alexander Stanuga
    11,999 Points

    keeps telling me "You didn't pass the toggle() method"

    Posted December 1, 2014 10:58am by Alexander Stanuga
    Alexander Stanuga
    11,999 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    2 Answers

  • shah den
    shah den
    1,508 Points

    interactive pages with javascript

    Posted November 9, 2014 10:20am by shah den
    shah den
    1,508 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    2 Answers

  • Sura Salman
    Sura Salman
    7,204 Points

    On line 5 of app.js, use the classList property on the anchor to add a new class of "selected" to it.

    Posted September 17, 2014 2:13am by Sura Salman
    Sura Salman
    7,204 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    10 Answers

  • Keith Doyle
    Keith Doyle
    25,973 Points

    Interactive Web Pages - classList.toggle isn't working

    Posted September 3, 2014 7:12pm by Keith Doyle
    Keith Doyle
    25,973 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Traversing and Manipulating the DOM with JavaScript
    • Changing Classes

    7 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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.