Thank you @russian-dima!
I tried this code.
When I click the button it saves the value of the first line, even if I click the button of the last line for exemple.
EDIT: I’m using a repeater.
EDIT 2 : I try to use in a Table and its working.
Thank you!