Bummer! You must be logged in to access this page.

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

interactive slider quiz

i would like to create a quiz using an interactive slider with jquery or javascript. i want to ask the user questions in the slider and according to the answers present a final result. maybe incorporate a form. is there a tutorial to get me started?

1 Answer

If I were you I would take a loot at the course focusing on how to use JQuery plugins here. It teaches how to build a carrousel/slider, simply by using an existing plugin called slick.js, if I remember well. I guess this way you'll be able to put each question you have in a specific slide to finally gather all the answers in a form at the end. That shouldn't be too much difficult.

What I would do is simply store each answer given for each slide in a specific variable and at the end, use the values of theses variables, that have all the answers in the fields of your form.