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();
}
});
});
WordPress Deluxe
Get more visitors with an SEO wizard.
- 1 website
- 75 GB storage
- Ideal for up to 100,000 visits per month
- Website backup protection with 1-click restore
- Automatic daily malware scans
- SEO optimizer
- 1-click testing site
$14.39 / per month