I\'d need to calculate sum of all checkboxes and update total based on selection here is html:
You can use .not() to exclude #total element value from calculations, .get() , Array.prototype.reduce() , + operator to cast value of :checkbox to Number
$(":checkbox").change(function(event) {
$("#total").val(function() {
return $(event.target.tagName).not("[type=text]")
.get().reduce(function(a, b) {
return +a.value + +b.value
})
})
})