No hacía falta que eches mano de jQuery.
Código Javascript
:
Ver originalvar total = 0;
[].forEach.call(document.querySelectorAll("[name=exceder_iva]"), function(checkbox){
checkbox.addEventListener("click", function(){
if (this.checked){
total += parseInt(this.value);
alert("Valor seleccionado: " + this.value + "\nTotal: " + total);
}
else{
total -= parseInt(this.value);
alert("Total: " + total);
}
}, false);
});
DEMO
Por cierto, nunca asignes el mismo
id
a más de un elemento en el mismo documento, recuerda que se trata de un valor único.
Saludos