From 9c098119b64975f0b0006a527edc610aa07b2e12 Mon Sep 17 00:00:00 2001 From: void-57 Date: Sat, 25 Oct 2025 14:24:24 +0530 Subject: [PATCH] Clear transaction output when user starts typing a new transaction --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 9ada3fa..f2b2e6f 100644 --- a/index.html +++ b/index.html @@ -1024,7 +1024,14 @@ button.innerHTML = originalHTML; } } - + // Clear transaction output when user starts typing a new transaction + const sendFormFields = ["privateKey", "recipientAddress", "sendAmount"]; + sendFormFields.forEach(fieldId => { + document.getElementById(fieldId).addEventListener("input", () => { + document.getElementById("sendOutput").innerHTML = ""; + }); + }); + // Send Transaction functionality document .getElementById("sendForm")