Skip to content

Instantly share code, notes, and snippets.

@jmontross
Created June 5, 2013 21:52
Show Gist options
  • Save jmontross/5717616 to your computer and use it in GitHub Desktop.
Save jmontross/5717616 to your computer and use it in GitHub Desktop.
american express add up the payments from transaction detail view page.
var amountSpent = 0;
$('.colAmmount').each(function($this,foo) { amountSpent += parseInt(foo.innerHTML.replace(/ /g,'').replace(/\n/g,'')) })
console.log(amountSpent);
$('.colAmmount').each(function($this,foo){ console.log($this,parseInt(foo.innerHTML.replace(/ /g,'').replace(/\n/g,''))) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment