restructured

This commit is contained in:
Karan 2021-12-03 14:34:02 +05:30 committed by GitHub
parent 48631ecd27
commit 55ab31fce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@
e.preventDefault();
errors.forEach(function (item) {
item.classList.add("hide");
})
});
let error = false;
inputs.forEach(function (el) {
let tempName = el.getAttribute("name");
@ -72,7 +72,7 @@
}
data[tempName] = el.value;
}
})
});
if (!error) {
myForm.submit();
}