title: javascript to input text into a textbox
body: <p>I am pretty new at javascript, so forgive me if this seems simple. What I'm trying to do is to get the input box to have a value of 'hello', when submit_a is clicked, but it's not happening.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  var Text = 'hello'.
    function setInput(button) {
       var buttonVal = button.value,
       textbox = document.getElementById('input_' + buttonVal);
       textbox.value = Text ;
  }
  &lt;/script&gt;
  
  &lt;html&gt;
   &lt;input type="submit" name="submit_a" value="click-me" onclick="setInput(this); return 
    false;"&gt; 
   &lt;input type="text" name="a" id="input_a"&gt;
  &lt;/html&gt;
  </code></pre>