Include the tableCalc_styles.css file in your HTML head section:
<link rel="stylesheet" href="tableCalc_styles.css">
Replace the old tableCalc() function with the refactored version from tableCalc_refactored.js
Make sure your table has the ID tblFid:
<table id="tblFid" class="table">...</table>
| ID | Amount A | Amount B | Amount C |
|---|---|---|---|
| 1 |
$1,234.56
+$50.23
(4.07%)
|
$987.65
-$12.45
(-1.26%)
|
$5,678.90
$0.00
(0.00%)
|
| 2 | $1,184.33 | $1,000.10 | $5,678.90 |