Hello, I need to make a toll calculation based on the kilogram. Every 100Kg toll value must be added
Ex:
50kg = 6.42
100kg = 6.42
101kg = 12.84
200kg = 12.84
299kg = 12.84
300kg = 19.26
...
$(document).ready(function () {
$("#pesoTotaldaNota").focusout(function() {
peso = "20.000"; // = 20Kg
echoPedagio = "6.42"
});
});
I need to show the result in input
<input name="pedagio" type="text" class="form-control" id="pedagio" value="" required>
Another example Até 100kg = 6.42
Até 200kg = 6.42+6.42
Até 200kg = 6.42+6.42+6.42