From dd0f135088b6f3e53bd2116121a0384fa58350e1 Mon Sep 17 00:00:00 2001 From: cap-dev0x <158111888+cap-dev0x@users.noreply.github.com> Date: Mon, 5 Feb 2024 05:30:01 -0800 Subject: [PATCH] fix(quiz): use $ instead of jQuery which is undefined (#1736) Fixes: #1703 Signed-off-by: cap-dev0x <158111888+cap-dev0x@users.noreply.github.com> --- src/main/resources/webgoat/static/js/quiz.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/webgoat/static/js/quiz.js b/src/main/resources/webgoat/static/js/quiz.js index c40b1838b..f3f5de9de 100644 --- a/src/main/resources/webgoat/static/js/quiz.js +++ b/src/main/resources/webgoat/static/js/quiz.js @@ -20,11 +20,11 @@ $(function () { let questionsJson = json; var questionsObj = JSON.parse(questionsJson); let html = ""; - jQuery.each(questionsObj, function(i, obj) { - jQuery.each(obj, function(j, quest) { + $.each(questionsObj, function(i, obj) { + $.each(obj, function(j, quest) { html += "
" + (j+1) + ". " + quest.text + "
"; html += "