I have a number of
<input type="text" name="price[]" value="100">
<input type="text" name="price[]" value="50">
<input type="text" name="price[]" value="10">
<input type="text" name="price[]" value="90">
I also have a input field
<input type="text" name="Add" value="">
I want
- each price[] input field to have their own Addition Button next to it that will get the value from that specific price[] input field
- add the value from the Add input field to it
- update the value of that specific price[] input field in the end
How can I do that?
to iterate through the price[]-boxes for adding buttons right to them and set the value from price[] to the button, do it like this
for the rest, i am not sure what you mean, “Add” has no value and you seriously want some kind of calculation? But try yourself, here was at least the iteration.