I have a form with multiple input that follows a pair sequence, ie: value1 for cost1, value2 for cost2 and etc ...
I need to get the input value value1 and assign the same value to cost1.
But I have several inputs and think of creating a script where I will do the assignment, and in each input I call the event and inform the name of the input, the script goes and assigns the value in the desired input.
The problem and I do not know how to do this, can anyone help me?
<input type='text' id='valor1' name='valor1'>
<input type='text' id='custo1' name='custo1'>
<br>
<br>
<input type='text' id='valor2' name='valor2'>
<input type='text' id='custo2' name='custo2'>