I\'m trying to assign a value from a user-selected option to the second loop. And if the selected value appears correctly, in the second loop it appears in the last input ID