jQuery(function($){ $('[id*="price-item-click"]').click(function() { var selector = $(this).attr('id').replace('-item-click', ''); var $price = $('#' + selector); var sum = 0; $price.toggle(); $price.toggleClass('price-active'); $(this).toggleClass('price-item-active'); $('.price-active').each(function(){ sum += parseFloat($(this).text().replace(/\D/g,'')); }); if (sum > 0){ $("#total-price-cal").show(); $("#total-price-cal").text("$" + sum + "k"); } else { $("#total-price-cal").hide(); } }); });

Recommended for documents and files.

  • Automatic daily backups
  • Built-in daily malware scanning
  • Back up a file, folder or an entire database
  • Continuous security monitoring
  • Downloads to local storage
  • Easy one-click restore
  • Secure cloud storage
  • Expert 24/7 customer support
  • One website per account
$3.59 / per month