-1
Personal as I calculate example 1.400 + 1.400 would like the result to be the following result = 2.800 and not 2.8 someone can help me there ?
$('input[type="text"]').keyup(function(){
var val = $($(this)).val().replace(',','.');
$($(this)).val(val);
$('#result').val(Number($('input[name="number_01"]').val()) + Number($('input[name="number_02"]').val()));
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<form action="">
<label for="">Peso 01: </label>
<br>
<input type="text" name="number_01" id="number_01"><br>
<label for="">Peso 02: </label>
<br>
<input type="text" name="number_02" id="number_02"><br><br>
<label for="">Resultado: </label>
<br>
<input type="text" name="result" id="result">
</form>
https://answall.com/questions/101773/como-fazer-c%C3%A1lculos-em-javascript-accepting-v%C3%Adrgula-para-separar-casas-decimais - This will help you a lot. It was a little research before and it was already solved. Cumps
– White