Woocommerce – JQuery CheckBoxes Price addition and deletion
$(document).ready(function(){ $("input[type='checkbox']").click(function(){ var priceTotal = 0; $("#calculator input[type='checkbox']:checked").each(function() { priceTotal += parseInt(this.value, 10); }); $('#total').html(priceTotal); }); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div id="calculator"> <input type="checkbox" />$29<br/> <input type="checkbox" />$39<br/> <input type="checkbox" />$49<br/> <input type="checkbox" />$59<br/> </div> <div class="total"><span>$0</span></div> Task: Based on the…