Remove the input if someone typed the wrong password #205

Merged
cami merged 1 commit from fronted/reset-input-values into main 2021-07-23 23:11:46 +00:00

View file

@ -115,10 +115,11 @@ export default function Study() {
}; };
const resetInputValues = () => { const resetInputValues = () => {
let inputElements = document.querySelectorAll('div input:not([type="submit"])'); let inputElements = document.querySelectorAll(
for (let i=0; i < inputElements.length; i++){ 'div input:not([type="submit"])'
inputElements[i].value = "" );
for (let i = 0; i < inputElements.length; i++) {
inputElements[i].value = "";
} }
}; };