value
of a button
using JQuery ?
What I want to do is to use this value
in a textarea
, so it does not necessarily have to be value
, name
would also work.
I want it to function like this:
I have a listing with several Buttons
, and next to a textarea
. What I want is when I click on the button (each with its value
or name
) to appear value
/ name
on textarea
on the side.
And what I'm not getting is to get value
/ name
from button
when clicking the button.
For this I already have every button with id
, and in JQuery use the function .click()
Could anyone help me?
Thank you!