Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($) {
- let sum = 0;
- let $card = $('.capped-card').each(function () {
- let $$ = $(this);
- let add = $$.find('.cmeta span.a').eq(0).html();
- add = add.split('++')[0].trim().replace(',', '');
- sum += parseInt(add);
- });
- console.log(sum);
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement