I am trying to add some integer value to the float (maybe it's not float with this situation this is money format) I have a money value like this: "4,918.05" and i want to add 30 to it.
var inputs = $('.ig-control__cbx');
var totalPrice = parseFloat($('.total-price-span').html());
var add = 30;
totalPrice = totalPrice +add
$('.total-price-span').html(totalPrice.toFixed(2));
When i want to sum them i get 4 instead of total. How can i fix it?