I have the following script
$(document).ready(function() {
$(".soma").bind("blur change check", function() {
total = 0;
$("input[type='checkbox']:checked").each(function() {
total+=parseFloat($(this).val());
});
$(".soma").each(function() {
if( $(this).attr('type')=='text' || $(this).is('select') ) {
total+=parseFloat($(this).val());
}
});
$("#input_resultado").val(total.toFixed(2));
$("#resultado").html(total.toFixed(2));
}
});
It takes the value of the checkbox makes a summation and saves inside a variable.
This code is working, but now it has stopped.
Algem could help me.