summaryrefslogtreecommitdiff
path: root/wk8/pset
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-05 05:35:06 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-05 05:35:06 +0000
commitdce882ade37930dd0aa848ebb75de2395659fa3b (patch)
tree1e64683f412e6d19ca60e25a0f36f13b4f2772a6 /wk8/pset
parent2c44c41a9f9754b844a2b2be78067d3aa3a52c6d (diff)
Thu, Jul 4, 2024, 10:35 PM -07:00
Diffstat (limited to 'wk8/pset')
-rw-r--r--wk8/pset/trivia/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/wk8/pset/trivia/index.html b/wk8/pset/trivia/index.html
index d08f795..298cd57 100644
--- a/wk8/pset/trivia/index.html
+++ b/wk8/pset/trivia/index.html
@@ -7,8 +7,8 @@
<title>Trivia!</title>
<script>
// TODO: Add code to check answers to questions
- document.querySelectorAll('button').addEventListener('click', function() {
- document.querySelectorAll('button').style.backgroundColor = "red";
+ document.querySelectorAll('answer').addEventListener('click', function() {
+ document.querySelectorAll('answer').style.backgroundColor = "red";
});
</script>
@@ -23,9 +23,9 @@
<h2>Part 1: Multiple Choice </h2>
<hr>
<h3>QUESTION?</h3>
- <button>answer1</button>
- <button>answer2</button>
- <button>answer3</button>
+ <button id="answer">answer1</button>
+ <button id="answer">answer2</button>
+ <button id="answer">answer3</button>
</div>
<div class="section">