diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-07-05 05:31:16 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-07-05 05:31:16 +0000 |
commit | 2c44c41a9f9754b844a2b2be78067d3aa3a52c6d (patch) | |
tree | a4cac03f8223bc37e2f2d812affd59f54f1443c7 /wk8/pset/trivia | |
parent | e3e45f1d57d1bdbbdf9cdb34b750a78041480b11 (diff) |
Thu, Jul 4, 2024, 10:31 PM -07:00
Diffstat (limited to 'wk8/pset/trivia')
-rw-r--r-- | wk8/pset/trivia/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wk8/pset/trivia/index.html b/wk8/pset/trivia/index.html index 0f5d9c6..d08f795 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.querySelector('button').addEventListener('click', function() { - document.querySelector('button').style.backgroundColor = "red"; + document.querySelectorAll('button').addEventListener('click', function() { + document.querySelectorAll('button').style.backgroundColor = "red"; }); </script> |