Guest User

Untitled

a guest
Apr 26th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. var column = 2,
  2. sum = 0;
  3.  
  4. $('table tr').each(function() {
  5. sum += parseInt($(this).find('td:eq(' + (column - 1) + ')').text());
  6. })
  7.  
  8. console.log(sum)
Add Comment
Please, Sign In to add comment