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 Using jQuery Plugins Using a jQuery Carousel Review jQuery Plugins

Quiz Question: how to apply the slick plugin?

I am having trouble answering a quiz question. The question is: Assume you have a series of div tags inside this div: <div id="slideContainer"> Complete this code to select that div and apply the slick plugin.

$('_____').slick();

I reviewed the video and transcript for the video. I also looked at the documentation. I believe the answer is: $('.slides').slick(); But was told the answer was incorrect. What am I missing?

1 Answer

jag
jag
18,266 Points
<!-- Video -->

    <div class="slides">  <!-- This is the parent (video) -->
      •••
    </div>


<!-- Quiz -->

    <div id="slideContainer"> <!-- This is the parent (quiz) -->
       •••
    </div>

The answer would be #slideContainer as that is the parent of the slides you will be adding the plugin to.

Thank you for the help