diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index b8e60835..610218a3 100755 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -104,7 +104,7 @@ {{question.get_answers_js}}.forEach((el, n) => { console.log(el) if (el) { - $("ol.physics-answer-list li")[n].addClass("correct") + $(`ol.physics-answer-list li:eq(${n})`).addClass("correct") } });