Google, but did not find a suitable answer. How to fill in the input or textarea from the button. Suppose there are buttons with numbers 1,2,3 and so on. When you click on the corresponding button with a number in the input field or a text field, the desired number appears. For example, when you click on the button with number 1, 1 appears, when you click on the button with number 2, 2 appears ... and so on. And when you click on another button or link, this value did not disappear. The fact is that the input field is filled from different sources. If you briefly explain the above button adds the number of the tooth, and there are also links with diagnoses should be something like this: Chosen tooth number 1, diagnosis of caries, etc ... Here, the word tooth selected number 1 is filled from the button that indicated above, and The diagnosis of caries is filled out of the links that I prepared in advance. For reference, the code is:
<li><a href="javascript:void(0)" onClick="document.getElementById('jaloby').value = 'Кариес' ;">1</a></li> And + How to make it so that it works through the button?
<button type="button" onclick="document.getElementById('jaloby').value = '1' ;">1</button>- Igorаthebutton. - Igor