How to do that would by clicking the buttons in the input field inserted text?

How to implement the button and the input field. When you click in the input field after text is written there is added text which is shown on the button. An example can be seen when typing the question in the Toaster)))
March 20th 20 at 11:23
1 answer
March 20th 20 at 11:25
$('#four').click(function(){
$('#count').val('4');
});

Example: jsfiddle.net/mtashev/J7m7m/12

Find more questions by tags JavaScriptjQuery