AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or 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

  • 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
      • • Vibe Coding
  • Natasha Godwin
    Natasha Godwin
    11,012 Points

    Why not use CSS? What are the advantages of using jQuery for simple effects (like showing and hiding content) over CSS?

    Posted August 6, 2017 6:53pm by Natasha Godwin
    Natasha Godwin
    11,012 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    2 Answers

  • Jenna Malone
    Jenna Malone
    7,173 Points

    Why not just use .hide(); ?

    Posted July 3, 2017 1:20am by Jenna Malone
    Jenna Malone
    7,173 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    1 Answer

  • Joseph Graham
    Joseph Graham
    289 Points

    I think jQuery not JavaScript library i think jQuery own web base programming Language like TypeScript what do you think

    Posted September 23, 2016 8:39pm by Joseph Graham
    Joseph Graham
    289 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    5 Answers

  • Yashwanth Yash
    Yashwanth Yash
    10,947 Points

    Why shouldn't we use button instead this?

    Posted August 11, 2016 5:29pm by Yashwanth Yash
    Yashwanth Yash
    10,947 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    2 Answers

  • Nadine Schermerhorn
    Nadine Schermerhorn
    2,324 Points

    Use of "this" as identifier

    Posted July 28, 2016 8:25pm by Nadine Schermerhorn
    Nadine Schermerhorn
    2,324 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    2 Answers

  • eric nzenga
    eric nzenga
    2,661 Points

    remove() vs hide()

    Posted May 15, 2016 2:22pm by eric nzenga
    eric nzenga
    2,661 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    2 Answers

  • Kenny Brijs
    Kenny Brijs
    8,191 Points

    It makes more sense to hide the button first and then show the spoiler, instead of the other way around

    Posted April 24, 2016 7:45pm by Kenny Brijs
    Kenny Brijs
    8,191 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    1 Answer

  • devver
    devver
    7,420 Points

    Page not removing button?? check my code

    Posted April 20, 2016 5:42pm by devver
    devver
    7,420 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    1 Answer

  • Anjali Pasupathy
    Anjali Pasupathy
    28,883 Points

    I wrote the code a different way, which uses only 2 semicolons. Is there anything stylistically wrong with it?

    Posted March 30, 2016 10:43pm by Anjali Pasupathy
    Anjali Pasupathy
    28,883 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    2 Answers

  • Thomas Katalenas
    Thomas Katalenas
    11,033 Points

    .remove("ANOTHER WAyyyy")

    Posted March 30, 2016 6:35pm by Thomas Katalenas
    Thomas Katalenas
    11,033 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    1 Answer

  • Javid Abbasov
    Javid Abbasov
    9,243 Points

    $(this).remove(); I didnt understand

    Posted March 8, 2016 5:57pm by Javid Abbasov
    Javid Abbasov
    9,243 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    2 Answers

  • holdicon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    holdicon
    Front End Web Development Techdegree Student 12,972 Points

    In the forum a great jquery question was asked and I think the answer should be added to the teachers notes

    Posted August 2, 2015 2:53am by holdicon
    .a{fill-rule:evenodd;}techdegree
    holdicon
    Front End Web Development Techdegree Student 12,972 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    0 Answers

  • Arsalan Raja
    Arsalan Raja
    6,508 Points

    in jQuery whey cant we use just hide method instead of remove.

    Posted June 10, 2015 2:29pm by Arsalan Raja
    Arsalan Raja
    6,508 Points
    • CSS
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    1 Answer

  • Jonathan Chaidez
    Jonathan Chaidez
    3,008 Points

    Perform: Part 3 - spoiler span display error

    Posted May 11, 2015 4:11am by Jonathan Chaidez
    Jonathan Chaidez
    3,008 Points
    • CSS
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    1 Answer

  • Adam Kempin
    Adam Kempin
    9,586 Points

    Why is it that jQuery and Javascript never seem to work when I use preview workspace?

    Posted April 20, 2015 12:55pm by Adam Kempin
    Adam Kempin
    9,586 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    3 Answers

  • Christopher campbell
    Christopher campbell
    1,996 Points

    I'm sure this was already explained but what in the purpose of the empty function in JavaScript? And when to use it?

    Posted March 27, 2015 12:34am by Christopher campbell
    Christopher campbell
    1,996 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    3 Answers

  • Julian PinzΓ³n Eslava
    Julian PinzΓ³n Eslava
    11,401 Points

    Is there supposed to be a little lag while loading page? Spoiler is shown for a small window of time!

    Posted December 19, 2014 8:50pm by Julian PinzΓ³n Eslava
    Julian PinzΓ³n Eslava
    11,401 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    5 Answers

  • Quicken Loans
    Quicken Loans
    12,654 Points

    Why not use .hide() here to hide the button after its pressed?

    Posted November 13, 2014 6:56pm by Quicken Loans
    Quicken Loans
    12,654 Points
    • CSS
    • jQuery Basics (2014)
    • Creating a Spoiler Revealer
    • Perform: Part 3

    3 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.