Created
May 23, 2015 18:55
-
-
Save mikermcneil/d247b7ddf98795e40c3f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(function getSumOfChaseDebits() { | |
arr = $('#DDATransactionDetails_DDAPrepaidTrnxDetailsGrid > tbody > tr > td:nth-child(4)').get(); | |
arr.shift(); | |
nums = arr.map(function(el) { | |
return +(el.textContent.replace(/^\s*|\s*$/g, '').replace(/[\$,]/g, '')); | |
}); | |
var sum = 0; | |
for (var i in nums) { | |
sum += nums[i]; | |
} | |
return sum; | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment