Skip to content

Instantly share code, notes, and snippets.

@jamesbrink
Created May 24, 2014 06:39
Show Gist options
  • Save jamesbrink/462a8e09796ada06f918 to your computer and use it in GitHub Desktop.
Save jamesbrink/462a8e09796ada06f918 to your computer and use it in GitHub Desktop.
t = document.querySelectorAll('.transactionRowPrice'); total = 0; for (i=0; i < t.length; i++){ var price = t[i].innerHTML.replace(/\$|[a-zA-Z]+/gi, ''); if (price != '') {total += parseInt(price)}; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment