Created
January 23, 2014 22:59
-
-
Save srn/8588554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// visit: just-eat.dk/member/prevorders | |
var sum = 0; | |
$('#ctl00_ContentPlaceHolder1_rightbox table tbody tr').each(function(){ | |
var amount = parseInt($(this).find('td').eq(3).find('div').find('div').eq(0).text().replace(',00', ''), 10); | |
console.log(amount); | |
if (isNaN(amount)) { return } | |
sum += amount; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment