From 0cad8e8b4b12ed0d1aaf4522a6c7f30da5c5e567 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 10 Dec 2021 23:49:29 +0000 Subject: [PATCH] . --- physics/templates/physics/exam_take.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index 1d17f941..4d02e18d 100755 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -102,7 +102,10 @@ }) {% else %} {{question.get_answers_js}}.forEach((el, n) => { - console.log(el;) + console.log(el) + if (el) { + $("ul.physics-answer-list li")[n].addClass() + } }); //$("ul.physics-answer-list li[data-ans='{{question.best_answer}}']").addClass("correct");