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 = () => {
|
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 = "";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue