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

HTML Build an Interactive Website jQuery Plugins Responsive Slider Plugin - JavaScript

Jordan Heider
Jordan Heider
5,037 Points

Stuck on step 3

This code works in the preview and in the browser outside of the challenge editor. I honestly can't understand why it isn't passing. Is anyone else having the same issue? Code is below.

var options = $('.wmuSlider').wmuSlider({animation:'slide', navigationControl:false});

2 Answers

Travis Flatt
Travis Flatt
20,149 Points

You want to set your options, then pass them to the wmuSlider function, I believe.

<script>
        var options = {
            animation: "slide",
            navigationControl: false
        };
        $(".wmuSlider").wmuSlider(options);
    </script>
Jordan Heider
Jordan Heider
5,037 Points

Thank you Travis. That's exactly what it was looking for! -Jordan