Remove the input if someone typed the wrong password
This commit is contained in:
parent
5816d4f914
commit
d220f86cb8
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"])');
|
||||
for (let i=0; i < inputElements.length; i++){
|
||||
inputElements[i].value = ""
|
||||
|
||||
let inputElements = document.querySelectorAll(
|
||||
'div input:not([type="submit"])'
|
||||
);
|
||||
for (let i = 0; i < inputElements.length; i++) {
|
||||
inputElements[i].value = "";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue