Hello I need to sum the values of same class input in one input with class name total.
You almost had it:
$(document).on("change", ".qty1", function() { var sum = 0; $(".qty1").each(function(){ sum += +$(this).val(); }); $(".total").val(sum); });
http://jsfiddle.net/DUKL6/1