$('input[type="checkbox"]').on('change', function() { var total = 0; var servicos = ''; $('input[type="checkbox"]:checked').each(function() { total += parseInt($(this).val()); servicos += $(this).data('servico')+ '
'; }); $('input[name="totalValor"]').val(total); $('.servicos').html(servicos); }); 140
130
70