I have a block of code below that I am using when the next button on my quiz is clicked to go to the next question. There are 4 possible answers(input radio buttons) inside each .questionContainer div, of which there are 5 for the 5 questions.
I want to allow the user to click on a specific question number and go right to that question. The .next() line of code is working correctly to advance to the next question and possible answeres, but the line that I have commented out does not work. What am I doing wrong??? Thanks
$('.btnNext').click(function(){
$(this).parents('.questionContainer').fadeOut(500, function(){
$(this).next().fadeIn(500);
//$(this).eq(1).fadeIn(500);
});
});