var real_price = $('#price').text();
var s1_price = $("input[name=s_sub_service]:checked").val();
$('#price').text(parseInt(s1_price) + parseInt(string1));
Here I add different values and give a general meaning. The problem is that when I add a new value to the final value, it also gives me the old value and adds it to the final value.
source
share