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(); } }); });

Show customers they can trust your code by securing it with a unique digital signature.

  • Validates and secures your code
  • Eliminates security warnings during download and installation
  • Protects with high-grade SHA-2 encryption
  • Includes free malware scanner
$239.99 / per year