jewlofthelotus / SlickQuiz

A jQuery plugin for creating pretty, dynamic quizzes.
http://jewlofthelotus.github.com/SlickQuiz
MIT License
400 stars 244 forks source link

How to get rid of 'Next Question' button and just jump to next question? #79

Open hediej opened 8 years ago

hediej commented 8 years ago

Hi! I love your quiz!! I was wondering how to edit it so you don't need the button and can select the image as the answer and jump to the next question? Thank you!

artgolwebdev commented 7 years ago

@hediej I did somethin like this


         // Artyom Start //
            function bindMe(){
            console.log("Binded...");
            $('a.button.nextQuestion.checkAnswer').hide();
            $('input').on('change',function(){
                    console.log("Go!");
                    plugin.method.checkAnswer(this, {callback: plugin.config.animationCallbacks.checkAnswer});
                    plugin.method.nextQuestion(this, {callback: plugin.config.animationCallbacks.nextQuestion});
                    $(this).addClass('animated fadeOutLeft');
                    });
        }// BIND ME ENDS HERE

        $(document).ready(function(){
            console.log("ready");
            setTimeout(function(){
                bindMe();
            },1000);
        });
            // Artyom end 

wirecreative commented 7 years ago

@EskimoLemon : Where did you put that code to make this work?

artgolwebdev commented 7 years ago

@wirecreative inside slickQuiz.js where the events were binded ...