0
Guys, I have a problem with this piece of code that I can’t solve in any way. In this case, the first two inputs receive values that are summed and this sum appears in the last input with the id money.
<td><b>Dinheiro</b></td>
<!-- Dinheiro - Valor Encontrado -->
<td><input type="number" class="form-control" id="dve" min="1" value="0" onkeyup="Calcular()" onmouseout="Calcular()" onkeydown="Calcular()"/></td>
<!-- Dinheiro - Sistema -->
<td><input type="number" class="form-control" id="ds" min="1" value="0" onkeyup="Calcular()" onmouseout="Calcular()" onkeydown="Calcular()"/></td>
<!-- Dinheiro - Divergência -->
<td><input type="text" value="0" class="form-control" id="dinheiroDivergencia" disabled></td>
My problem is in formatting the input, I would like the user to type the numbers automatically, for example, when typing 333,333,333, the commas were automatically added to every three numbers. I was able to do this using Cleaver.js and Autonumeric.js, but they save everything at the time of the sum.
Thank you very much!
– GABRIEL LUIZ DA SILVA