 <p>something like <a href="https://jsfiddle.net/bmhs35oh/1/" rel="nofollow">this</a>?</p> <pre><code>$(document).ready(function() { $('ul').each(function(){ var $thisUl = $(this); $thisUl.find('input').change(function(){ var total = 0; $thisUl.find('input:checked').each(function() { total += parseInt($(this).val()); }); $thisUl.find('li:last span').html(total + ' €') }); }); $('input').change(function(){ var overAllPrice = 0; $('input:checked').each(function(){ overAllPrice += parseInt($(this).val()); }) $('.overallprice').html(overAllPrice); }) }); </code></pre>