-4
I have a registration screen that has 30 inputs and in it I will report values from 0 to 99 and I have another Total input. I need that, when certain quantities of inputs are filled in, the Quantity of Inputs is multiplied by 5. Example:
<input type="text" class="form-control" id="numero1" name="numero1" value="10"><br>
<input type="text" class="form-control" id="numero2" name="numero2"value="15"><br>
<input type="text" class="form-control" id="numero3" name="numero3"value="20"><br>
<input type="text" class="form-control" id="numero4" name="numero4" value="25"><br>
<input type="text" class="form-control" id="numero5" name="numero5" value="30">
Note that among the 30 Inputs existing on the page, I had only 5 filled. Therefore, this quantity will be multiplied by 5 showing the calculation in the TOTAL Input.
<label>Total: </label><input type="total" class="form-control" id="total" name="total">
Sorry but your question and explanation are not clear enough to understand what you want.
– user60252
I need the calculation to be done according to the number of fields (inputs) filled and not by the value contained in each of them E that this quantity is multiplied by R$: 5.00
– Willame Costa
In this case, you want the value of the total to be 25? In case 5 filled inputs multiplied by 5. That would be it?
– Rebeca Nonato
Exactly, Rebekah.
– Willame Costa