Created
September 7, 2016 11:29
-
-
Save martinrusev/ef9bf718e446d22ac9292b025a8d1fcf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sum=0; | |
$('.tabellebg .tarifiert').each(function() { | |
val = $(this).html(); | |
formatted_val = val.replace(".", "").replace(" kB", "").replace(" ", ""); | |
val_to_int = parseInt(formatted_val); | |
if(!isNaN(val_to_int)) { | |
sum +=val_to_int; | |
} | |
}); | |
console.log(sum) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment