score:1

Accepted answer

Remove svg from the event handler arguments and your code works.

Side note: In your article, you have the second paragraph identified as total_loan_originated, but in your JavaScript, it's called total_loan_origination.

Here's a working test fiddle that doesn't append to svg.

Update: The text box isn't being removed properly. This updated fiddle removes it.


Related Query

More Query from same tag