From 4951eab13cd5b19087d341ebbb5549b5388eeef4 Mon Sep 17 00:00:00 2001 From: Mohammad Zubair Ali Date: Tue, 23 Apr 2024 17:56:54 +0530 Subject: [PATCH] fixed hightlight correct answer issue while using random answer --- js/qsm-quiz.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/qsm-quiz.js b/js/qsm-quiz.js index 65e8cf3e3..b7ef323d7 100644 --- a/js/qsm-quiz.js +++ b/js/qsm-quiz.js @@ -1782,7 +1782,6 @@ function qsm_show_inline_result(quizID, question_id, value, $this, answer_type, $this.append('
' + qmn_quiz_data[quizID].quick_result_correct_answer_text + '
') $this.append('
' + qsm_check_shortcode(data.message) + '
'); } else if (0 < value.length && data.success == 'incorrect') { - console.log(data); $this.find('.qmn_radio_answers input[value="' + data.correct_index + '"]').parent().addClass('data-correct-answer'); $this.append('
' + qmn_quiz_data[quizID].quick_result_wrong_answer_text + '
') $this.append('
' + qsm_check_shortcode(data.message) + '
');