Skip to content

Instantly share code, notes, and snippets.

@jasonwaters
Created June 4, 2014 19:42
Show Gist options
  • Save jasonwaters/77fcbb5503ca11c4aace to your computer and use it in GitHub Desktop.
Save jasonwaters/77fcbb5503ca11c4aace to your computer and use it in GitHub Desktop.
(function() {
var jq = document.createElement('script');
jq.src = "https://code.jquery.com/jquery-latest.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setTimeout(function() {
var totes = 0;
$('#result_list>tbody tr').each(function() {
var value = parseFloat($(this).find('td:nth-child(3)').text());
if (!isNaN(value)) {
totes += value;
}
});
console.log("Grand Total: $" + totes);
}, 500);
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment