Skip to content

Instantly share code, notes, and snippets.

@srn
Created January 23, 2014 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srn/8588554 to your computer and use it in GitHub Desktop.
Save srn/8588554 to your computer and use it in GitHub Desktop.
// 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