0
I’m used a input "quantity" which multiplies the value of the input "unit value" and updates the input "total value". So far working all right.
So I started using the bootstrap-touchspin :
<input type="number" name="p_t11" id="P1103_QTDE" value="1" size="30" maxlength="4000">
<input type="text" name="p_t13" id="P1103_TOTAL" value="100,00" size="30" maxlength="4000">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-touchspin/4.2.5/jquery.bootstrap-touchspin.min.js"></script>
$("input[id='P1103_QTDE']").TouchSpin({
min: 0,
max: 10000000000,
boostat: 5,
forcestepdivisibility: "none",
step: 1,
maxboostedstep: 10,
buttondown_class: "btn btn-ciano btn-xs btn-mob",
buttonup_class: "btn btn-ciano btn-xs btn-mob",
mousewheel: "true"
});
The input "total" does not dynamically update the value on the screen, but saves the value correctly. How could I update the "total value" field dynamically by clicking on the "+" and "-" ?
It was exactly that, it works perfectly now. Thank you!
– Kim Hanneman
You’re welcome @Kimhanneman
– Miguel
If necessary multiply by a variable value of the field "unit value" #P1103_VALOR_UNITARIO, as it would be?
– Kim Hanneman
@Kimhanneman with this sample of code/ image do not know where this value is. By the code you placed the solution goes through this
– Miguel