From 81be0a6509df2c5f718103725bb1a3d8f65f5fd9 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Mon, 6 Nov 2023 12:04:08 -0500 Subject: [PATCH] feat: add javascript --- signup_form/index.html | 4 ++-- signup_form/js/script.js | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/signup_form/index.html b/signup_form/index.html index 3ef43b0..4eec80b 100644 --- a/signup_form/index.html +++ b/signup_form/index.html @@ -35,8 +35,8 @@
- - CONFIRM PASSWORD +
diff --git a/signup_form/js/script.js b/signup_form/js/script.js index e69de29..f82fe09 100644 --- a/signup_form/js/script.js +++ b/signup_form/js/script.js @@ -0,0 +1,14 @@ +const name = document.querySelector('#name'), + email = document.querySelector('#email'), + password = document.querySelector('#password'), + passwordConfirmation = document.querySelector('#password-confirmation') + + + +passwordConfirmation.addEventListener('keyup', e => { + if (password.value === e.target.value ) { + console.log('they equal'); + } else { + console.log('They don\'t equal'); + } +})