What I am trying to achieve is quite simple to explain. I have a form, in which I have a common textarea, but I want that above this textarea there are diverse buttons that when pressing them load predefined data to the textarea, and in the same order that the user press the buttons.
Example, I have 4 buttons:
RED, with the value "You selected the color red."
BLUE, with the value "You selected the color blue."
GREEN, with the value "You selected the green color."
YELLOW, with the value "You selected the yellow color.".
In this way, if a user presses the RED button and the GREEN button, the textbox will write: "You selected the color red You selected the color green"
I am relatively new to this and I have a project in mind where I would need to make this textbox fill dynamically in that way and so I can in the future add or delete buttons with different values. I'm using Laravel for development, in case it helps.
I was trying for a while to do a script with JS but I could not make much progress, I would appreciate any help.
Thank you very much already.