In a form there are N occurrences of values for the same product, to facilitate I'm wanting to apply the same value for the subsequent inputs.
For example, using the structure below:
<input class="valor partida" type="text" name="novo_valor_partida-1" value="11,11" data-produto="0101000" data-id="1">
<input class="valor partida" type="text" name="novo_valor_partida-2" value="11,11" data-produto="0101000" data-id="2">
<input class="valor partida" type="text" name="novo_valor_partida-3" value="11,11" data-produto="0101000" data-id="3">
When you change the value in input 1, 2 and 3 will also receive the value. If input 2 is changed, only 3 receives the value and so on.
Since there are N fields, I will use the data-produto
attribute to select the inputs.