+ 2

(Solved) JS problem of a expense record web app

After I add some entries, the total amount shown is correct. However, when I delete some records, the total amount was deducted incorrectly, I spent two days trying to tackle this problem but still did not have any ideas. Can someone take a look at my code and tell me what the problem is? This is the last problems to tackle before I can publish this web app. Thank You. https://code.sololearn.com/Wlp2jj3nJ5Dk/?ref=app

26th Jul 2022, 11:00 PM
Wai Lim
Wai Lim - avatar
1 ответ
+ 3
Well first move script "jquery" from "body" to "head". Replace line 69 with this: $(".delete").off().click(function(){ And in general, you have too much unnecessary code. 😉
26th Jul 2022, 11:19 PM
Solo
Solo - avatar