diff options
-rw-r--r-- | wk8/pset/trivia/index.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wk8/pset/trivia/index.html b/wk8/pset/trivia/index.html index 137981a..422fda4 100644 --- a/wk8/pset/trivia/index.html +++ b/wk8/pset/trivia/index.html @@ -22,6 +22,13 @@ document.querySelector('#feedback1').innerHTML = 'Incorrect'; }); }; + + document.querySelector('form').addEventListener('submit', function(event) { + if (document.querySelector('#big').value == 'small') { + + } + event.preventDefault(); + }); }); </script> |