The 'next' button gets a hidden class applied to it after its clicked. It works on desktop and androids but not on iOS (or Safari I think?)
JS
function submitQuizAnswer() {
$('#submit-answer').on('click touch', function(event){
event.preventDefault();
evaluateAnswers();
$('#submit-answer').addClass('hidden');
$('#next-question').removeClass('hidden');
$('input[type=radio]').attr('disabled', true);
});
}
function advanceToNextQuestion() {
$('#next-question').on('click touch', function(event) {
if (currentQ < quizArray.length-1) {
currentQ++;
renderQuestions();
resetQuestion();
} else {
showFinalScore();
}
});
}
function resetQuestion() {
$('input[type=radio').attr('disabled', false);
$('#next-question').addClass('hidden');
$('#submit-answer').removeClass('hidden');
$('#feedbackcorrect').addClass('hidden');
$('#feedbackincorrect').addClass('hidden');
$('.wrong-answer').addClass('hidden');
$('#submit-answer').addClass('disabled');
$('#submit-answer').attr('disabled', 'disabled');
}