From 62f02532001b3bf3c3d399ffa738bb3ec8ba393e Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 25 Nov 2024 10:01:41 +0530 Subject: [PATCH] Fixed FD Calculator: resolved non-functional button issue --- tools/FDCalculator.js | 4 ++-- tools/sip.html | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/FDCalculator.js b/tools/FDCalculator.js index 7521f1d1..da917024 100644 --- a/tools/FDCalculator.js +++ b/tools/FDCalculator.js @@ -1,5 +1,5 @@ document.addEventListener('DOMContentLoaded', function() { - document.getElementById('calculateBtn2').addEventListener('click', function() { + document.getElementById('calculatefd').addEventListener('click', function() { const principal = parseFloat(document.getElementById('principal').value); const rate = parseFloat(document.getElementById('rate').value); const years = parseInt(document.getElementById('years1').value); @@ -25,7 +25,7 @@ document.addEventListener('DOMContentLoaded', function() { document.getElementById('maturityAmount').textContent = formatter.format(maturityAmount); }); - document.getElementById('clearBtn1').addEventListener('click', function() { + document.getElementById('clearfd').addEventListener('click', function() { clearInputs(); }); diff --git a/tools/sip.html b/tools/sip.html index a015aa2e..406ce9ba 100644 --- a/tools/sip.html +++ b/tools/sip.html @@ -2334,23 +2334,25 @@
Result:
+ Fixed Deposit Calculator
+
+
+
- - + +