So now I'm trying to customize Jquery steps by adding a score for each question's option. But the problem is that I can't find where check if the next button is check or not and the same thing for previous button. Simply I want to push the score of the answer in array when next button is click and remove it from array when previous is clicked. But I can't call next and previous function.
This is Jquery steps:
$(function() {
$("#wizard").steps({
headerTag: "h4",
bodyTag: "section",
transitionEffect: "fade",
enableAllSteps: true,
transitionEffectSpeed: 500,
onStepChanging: function(event, currentIndex, newIndex) {
qIndex = newIndex;
if (newIndex === 1) {
$('.steps ul').addClass('step-2');
} else {
$('.steps ul').removeClass('step-2');
}
and that 's what I', trying to do:
$('.forward').click(function() {
$("#wizard").steps('next');
total.push(currentScore);
})
$('.backward').click(function() {
total.pop(currentScore);
$("#wizard").steps('previous');
})
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)