Skip to content

Instantly share code, notes, and snippets.

@imjared
Last active September 21, 2015 15:12
Show Gist options
  • Save imjared/2c9eea3498fd26c03a35 to your computer and use it in GitHub Desktop.
Save imjared/2c9eea3498fd26c03a35 to your computer and use it in GitHub Desktop.
var total = 0;
$('.results-list tr').not('thead tr').each( function() {
var amount = $(this).find('td').eq(4).text();
amount = amount.replace('$', '');
total = total + parseFloat( amount );
});
console.log( 'total amount: $' + total.toFixed( 2 ) + ', lol' );
@imjared
Copy link
Author

imjared commented Sep 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment