Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript jQuery Basics (2014) Creating a Spoiler Revealer Perform: Part 1

jQuey code is not working.

I have typed- $(".spoiler span").hide(); $(".spoiler").append("<button>Reveal Spoiler!</button>"); just as it is instructed, but there is no change in the web page. The spoiler is still visible and no new button is appeared. However I was using chrome, so I thought of trying this on other browser. So I installed firefox and there the code is working fine. Can you help me fixing the problem on chrome as I use chrome only for all my internet need.

Can you post a link to your workspace?

yes the link of workspace is - http://port-80-7zkk1vdzag.treehouse-app.com/

I meant if you could take a snapshot of your workspace. the link you provided is the direct link which will not work for others.

3 Answers

Your code is simply appending a text.

.append("Reveal Spoiler!")

In this course we were adding a button with the appropriate text.

.append("<button>Reveal Spoiler!</button>").

Since the css had the formatting for the button this might be the reason why you encountered the problem.

Oh sorry it's just a typing mistake, in my workspace I have added <button> tags. I guess the problem is in my chrome browser, as it is running fine on firefox

All the tutorials have the final version in the download section. Under the video. Try downloading the finished project and see if it does the same thing (eliminates the possibility of having a typo or some other error on your side in terms of coding).

Rich Braymiller
Rich Braymiller
7,119 Points

I don't know why treehouse uses chrome, its awful in more ways than I can describe. It shows code I do 24% of the time!