From 065de34737a272b0f4ef4c8d63afab2bb5f74531 Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 11 Dec 2021 00:17:38 +0000 Subject: [PATCH] . --- physics/templates/physics/exam_take.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index 55dcf9ac..ccd3bdf8 100755 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -105,7 +105,7 @@ {{question.get_answers_js}}.forEach((el, n) => { console.log(el) li_el = $(`ol.physics-answer-list li:eq(${n})`)//.addClass(`answer-${el}`) - if (el == li_el.find("input").checked) { + if (el == li_el.find("input").get(0).checked) { li_el.addClass("answer-correct"); } else { li_el.addClass("answer-incorrect"); @@ -150,7 +150,7 @@ border: 1px solid purple; background-color: green; } - .answer-false { + .answer-incorrect { border: 1px solid purple; background-color: green; }