Wanting to create a button. Once button click onevent of the value.
<button type="button" value="xxxx">Press</button>
<button type="button" value="yyyy">Press</button>
value of xxx from button will enter the textfield with the value of the button as per value.
<input type="textarea" name="textfield" id="text">