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) Introduction to jQuery What is the DOM?

Isaac Calvo
Isaac Calvo
8,882 Points

why does $(".warning").hide().show() fail on task #3 in challenge? task 3 doesn't specifically say to pass "slow"

so the above code should pass w/o having to fail then being prompted to pass "slow" to .show()

possibly question was worded wrong? or is "slow" always passed to .show()?

2 Answers

It says lets show the content slowly means. You've to pass 'slow' parameter on .show();

Slow is only passed to show() if you include that as the (optional!) option. Without it, it shows immediately. Your code should be $(".warning").hide().show("slow");