title: change value of input field onclick
body: <p>I am trying to change the value of an input value with the innerHtml of the button that is clicked ... I have tried a couple of ways but none have worked</p>
  
  <pre><code>&lt;script&gt;
     function changeValue(){
       var cValue = document.getElementbyId('technician').innerHTML;
       var cType = document.getElementbyId('type');
       var cType.value = cValue;
      }
  &lt;/script&gt;
  
  &lt;button id="technician" onclick="changeValue()"&gt;Technician&lt;/button&gt;
  &lt;input type="" id="type" name="type" value="change"&gt;&lt;/input&gt;
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>&lt;script&gt;
     function changeValue(){
       var cValue = document.getElementbyId('technician').innerhtml;
       document.getElementbyId('type').value = ('cValue');
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>neither seems to be working</p>