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