Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Nthulane Makgato
Courses Plus Student 19,602 PointsChallenge 4/4 of Responsive Slider Plugin
Hi All,
I have been struggling with the following code challenge: Using jQuery select the class “wmuSlider” and call the “wmuSlider” method passing in “options”.
Here are my efforts.
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascropt" src="jquery.wmuslider.js"></script>
<script>
var options = {
animation: "slide",
navigationControl: false,
};
$(".wmuSlider").wmuSlider(options);
</script>
Everything other than the last line with "$(".wmuSlider").wmuSlider(options);"
was from task 1-3.
I am pretty sure that the line is correct but i am open to correction. When I submit this, the response is, "bummer null".
Thanks in advance for your help.
2 Answers

Jacob Miller
12,466 PointsYou shouldn't have a comma after the last key of the "options" object, but other than that your code looks correct. My code below passed:
<script>
var options = {
animation: "slide",
navigationControl: false
};
$(".wmuSlider").wmuSlider(options);
</script>

Nthulane Makgato
Courses Plus Student 19,602 PointsThank you very much Jacob. You are right.