summaryrefslogtreecommitdiff
path: root/wk8/pset
diff options
context:
space:
mode:
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">