This commit is contained in:
Ross
2021-12-11 00:17:38 +00:00
parent 22f335fb4c
commit 065de34737
+2 -2
View File
@@ -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;
}