diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index 079dff8e..3d31327d 100755 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -101,7 +101,7 @@ // }) //}) {% else %} - $(`ol.physics-answer-list input`).disabled = true; + $(`ol.physics-answer-list input`).each((n, el) => { el.disabled = true; }); {{question.get_answers_js}}.forEach((el, n) => { console.log(el) $(`ol.physics-answer-list li:eq(${n})`).addClass(`answer-${el}`)