Remove the input if someone typed the wrong password #205
1 changed files with 5 additions and 4 deletions
|
@ -115,10 +115,11 @@ export default function Study() {
|
|||
};
|
||||
|
||||
const resetInputValues = () => {
|
||||
let inputElements = document.querySelectorAll('div input:not([type="submit"])');
|
||||
let inputElements = document.querySelectorAll(
|
||||
'div input:not([type="submit"])'
|
||||
);
|
||||
for (let i = 0; i < inputElements.length; i++) {
|
||||
inputElements[i].value = ""
|
||||
|
||||
inputElements[i].value = "";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue