Skip to content

Instantly share code, notes, and snippets.

View mahmoudawadeen's full-sized avatar

Mahmoud Awadeen mahmoudawadeen

View GitHub Profile
var total = 0;
var product_prices = $('.product-price').each(function( index ) {
total+=parseFloat($(this).text().substr(1));
});
$('#total-price-cart').html('€'+total);
$('.size-buttons').click(function(e){
console.log($(this).parents('td').children('.size').text());
});