title: set value of input tag to another value using javascript
body: <p>I have an HTML input tag and I want to change the value of it when clicking on a button, all before submitting the whole form.</p>
  
  <p>I am trying to use getElementById(idOfInput).value = "value I want to set it to", but that doesn't seem to work.</p>
  
  <p>Check out the jsfiddle here: <a href="http://jsfiddle.net/dchaddock/83NZu/1/" rel="nofollow">http://jsfiddle.net/dchaddock/83NZu/1/</a></p>
  
  <pre><code>&lt;input id="resetTesting" value="Testing" /&gt;
  &lt;button type="button" onclck="resetInput();"&gt;Testing&lt;/button&gt;
  
  function resetInput() {
      document.getElementById("resetTesting").value = "I'm reset!";
  }
  </code></pre>
  
  <p>Thanks!</p>