This is what i have. It does not correctly add two values when two
checkboxes are checked. It should add up to 160 but it adds up to 20
instead! any ideas?

Thanks
Patrick

<label><input type="checkbox" name="additionals"
id="NutsandBoltsPreconference"  value="150" /> Nuts and Bolts
Preconference</label><br/>
<label><input type="checkbox" name="additionals" id="TestAdd"
value="10" /> TestAdd</label>

$('input[name=additionals]:checked').each(function() {
        amountdue += parseFloat( $('input[name=additionals]:checked').val
() );
});

Reply via email to