diff --git a/js/qsm-quiz.js b/js/qsm-quiz.js
index e368d298d..65e8cf3e3 100644
--- a/js/qsm-quiz.js
+++ b/js/qsm-quiz.js
@@ -1781,8 +1781,9 @@ function qsm_show_inline_result(quizID, question_id, value, $this, answer_type,
if ( 0 < value.length && data.success == 'correct') {
$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') {
- $this.find('.qmn_radio_answers').children().eq(parseInt(data.correct_index)).addClass('data-correct-answer');
+ } 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) + '
');
}