aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/functionality/application-receipt.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/functionality/application-receipt.ts')
-rw-r--r--src/scripts/functionality/application-receipt.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/functionality/application-receipt.ts b/src/scripts/functionality/application-receipt.ts
index 7fdf4d0..878b910 100644
--- a/src/scripts/functionality/application-receipt.ts
+++ b/src/scripts/functionality/application-receipt.ts
@@ -1,4 +1,4 @@
-const receiptFormElement = document.querySelector("#form_reprint_request") as HTMLElement;
+const receiptFormElement = document.getElementById("form_reprint_request") as HTMLElement;
receiptFormElement.removeAttribute("id");
receiptFormElement.removeAttribute("name");
receiptFormElement.removeAttribute("onsubmit");
@@ -10,7 +10,7 @@ let captchaElement = document.querySelector("#werter > div > div:nth-child(4)")
if (captchaElement) {
captchaElement = captchaElement!;
- const captchaValueElement = document.querySelector("#captchaText") as HTMLInputElement;
+ const captchaValueElement = document.getElementById("captchaText") as HTMLInputElement;
const captchaFieldElement = document.querySelector("[name=txtDrawText]") as HTMLInputElement;
const removeCaptcha = () => {
captchaFieldElement.value = captchaValueElement.value;