Skip to content

Instantly share code, notes, and snippets.

@jeanbza
Created June 4, 2016 20:48
Show Gist options
  • Save jeanbza/bfbf7d9c139ab73b1ce20064d6c27c77 to your computer and use it in GitHub Desktop.
Save jeanbza/bfbf7d9c139ab73b1ce20064d6c27c77 to your computer and use it in GitHub Desktop.
Chase sum pending
var amounts = $("#Pending").find("td.amount");
var total = 0;
for (i = 0; i < amounts.length; i++) { total += parseFloat($(amounts[i]).text().substring(1)) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment