Can some one help me, i need to compute 'AUTOMATICALLY' `<input>` that has the same `class=` and output into another `<input id=>`, this is what i've tried so far

```
$('.debit').change(function(e)  {
    var total = 0;
    total +=  parseFloat(this.value);
    $('#total').val(total);
});

```