Created
January 9, 2017 13:20
-
-
Save PeterTheOne/1edfbcef89882d26f8787ccffd790360 to your computer and use it in GitHub Desktop.
Calculate total sum of all bbudget projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sum = 0; document.querySelectorAll('.campaign_budget').forEach(function(button) { sum += parseInt(button.innerHTML.substring(0, button.innerHTML.length - 1)); }); console.log(sum); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment