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'); + } +})