+ 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
1 Resposta
+ 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. 😉