Welcome to the Treehouse Community
Looking to learn something new?
mine is cool!!
This is what I came up with when looking at the API it does work, it hides the button while showing the spoiler!!!
Steven Parker221,328 Points
At first glance, it looks like it might do the opposite: hide the spoiler but show the button.
However, I'm confused by a couple of things:
- the selector "
: button" doesn't look like a valid selector.. Is the space a typo?
- the API indicates that a string argument to show is duration, not a filter selector.
So if the argument is being disregarded, then the spoiler class is being hidden and then immediately shown. That would explain "show the spoiler". But I can't see how this would hide the button.