title: How to add text into input area with javascript radio button
body: <p>I am trying to achieve a function where-by a user would choose an option  via a radio button and the value would be added into an input text box. </p>
  
  <p>I used the <code>onClick</code> but wasn't efficient enough. </p>
  
  <pre><code>/*
  button
  &lt;div onClick="    
  document.forms['name_of_ the_form']['name_of_the_ input'].value += 'text you want to add to it'" &gt; button &lt;/div&gt; 
  */
  </code></pre>