Skip to content

Instantly share code, notes, and snippets.

View joshbedo's full-sized avatar
🤙

Josh Bedo joshbedo

🤙
View GitHub Profile
(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];
}