🤑 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

  • 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
  • Ashish S
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ashish S
    Python Web Development Techdegree Student 938 Points

    removeClass and addClass

    Posted March 10, 2019 4:49am by Ashish S
    .a{fill-rule:evenodd;}techdegree
    Ashish S
    Python Web Development Techdegree Student 938 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Ilya Chekharin
    Ilya Chekharin
    6,341 Points

    "This"

    Posted January 13, 2019 12:21pm by Ilya Chekharin
    Ilya Chekharin
    6,341 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    3 Answers

  • Michael Pashkov
    Michael Pashkov
    22,024 Points

    Can we use arrow functions?

    Posted October 4, 2018 2:50pm by Michael Pashkov
    Michael Pashkov
    22,024 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Jonathan Dell'Ova
    PLUS
    Jonathan Dell'Ova
    Courses Plus Student 6,283 Points

    if I were to use the .on() method on the ul element instead, how would i complete this challange?

    Posted June 29, 2018 11:46am by Jonathan Dell'Ova
    Jonathan Dell'Ova
    Courses Plus Student 6,283 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Philip Kroupoderov
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Philip Kroupoderov
    Front End Web Development Techdegree Graduate 21,641 Points

    If he wrote $("button").removeClass("selected"); then why does the each() method even exist?

    Posted April 21, 2018 7:37pm by Philip Kroupoderov
    .a{fill-rule:evenodd;}techdegree seal-36
    Philip Kroupoderov
    Front End Web Development Techdegree Graduate 21,641 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Dominykas Kuizinas
    Dominykas Kuizinas
    10,761 Points

    Wouldn't it be better to use .on() method rather than .click() ?

    Posted March 19, 2018 6:57pm by Dominykas Kuizinas
    Dominykas Kuizinas
    10,761 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Adam Beer
    Adam Beer
    11,314 Points

    Does anyone know why does not fill in the workspace?

    Posted February 3, 2018 5:06pm by Adam Beer
    Adam Beer
    11,314 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    0 Answers

  • Howard Goldstein
    Howard Goldstein
    9,399 Points

    $(this) doesn't seem to be working

    Posted December 17, 2017 9:03pm by Howard Goldstein
    Howard Goldstein
    9,399 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Ben Ahlander
    Ben Ahlander
    7,528 Points

    404 error

    Posted July 7, 2017 8:44pm by Ben Ahlander
    Ben Ahlander
    7,528 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Joseph Dunleavy
    Joseph Dunleavy
    259 Points

    Why am I not learning more pure javascript?

    Posted June 16, 2017 11:43pm by Joseph Dunleavy
    Joseph Dunleavy
    259 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    4 Answers

  • Kangin Choi
    Kangin Choi
    4,174 Points

    $(document).ready() vs. $document.ready()

    Posted June 9, 2017 10:17am by Kangin Choi
    Kangin Choi
    4,174 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Pol Sole
    Pol Sole
    8,795 Points

    Same origin-policy and CDNs?

    Posted January 25, 2017 11:40am by Pol Sole
    Pol Sole
    8,795 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Gabriel Moreta
    Gabriel Moreta
    7,546 Points

    Doesnt work code in flickr.js

    Posted December 14, 2016 5:25pm by Gabriel Moreta
    Gabriel Moreta
    7,546 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    2 Answers

  • fredyrosales
    fredyrosales
    10,572 Points

    Can i use my own text editor in this project?

    Posted September 28, 2016 9:07pm by fredyrosales
    fredyrosales
    10,572 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    3 Answers

  • Giovanni Dalla Rizza
    Giovanni Dalla Rizza
    10,637 Points

    using of 'this' to removeClass button

    Posted September 15, 2016 3:15pm by Giovanni Dalla Rizza
    Giovanni Dalla Rizza
    10,637 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    2 Answers

  • Aaron Munoz
    Aaron Munoz
    11,177 Points

    How are the buttons fading in and out?

    Posted October 6, 2015 9:46pm by Aaron Munoz
    Aaron Munoz
    11,177 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Bappy Golder
    Bappy Golder
    13,449 Points

    How does $(this) work in this case?

    Posted July 19, 2015 11:08pm by Bappy Golder
    Bappy Golder
    13,449 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    2 Answers

  • gerardchin
    gerardchin
    16,144 Points

    isn't this more appropriate and a better practice ? $(this).parent().siblings().children().removeClass("selected");

    Posted January 13, 2015 5:30am by gerardchin
    gerardchin
    16,144 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Eric Ridolfi
    Eric Ridolfi
    19,417 Points

    $('button') on removeClass but not $(this)?

    Posted November 1, 2014 5:03pm by Eric Ridolfi
    Eric Ridolfi
    19,417 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Steven Romano
    Steven Romano
    10,024 Points

    Why is button in single quotes when the click method is use. Why is the button in double quotes in the removeClass?

    Posted October 31, 2014 2:14pm by Steven Romano
    Steven Romano
    10,024 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

  • Jaime Jayne
    Jaime Jayne
    882 Points

    Workspace doesn't work.. Any additions or changes to my workspace are not reflected when I then view the page.

    Posted September 3, 2014 7:06pm by Jaime Jayne
    Jaime Jayne
    882 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Adding jQuery

    1 Answer

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.